{"id":"CVE-2026-47240","published":"2026-06-22T20:17:15Z","modified":"2026-06-23T15:06:33Z","title":"Net::IMAP: Command Injection via non-synchronizing literal in \"raw\" argument","vendor":"ruby","product":"net-imap","tier":"tail","description":{"text":"Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to 0.6.5 and 0.5.15, several Net::IMAP commands accept a \"raw data\" argument that is sent verbatim after validation to prevent command injection. However, if a server does not support non-synchronizing literals, it may still be possible to inject arbitrary IMAP commands inside non-synchronizing literals.  A server without support for non-synchronizing literals may interpret the \"+}\\r\\n\" as the end of a malformed command line and respond with a tagged BAD. In that case, the contents of the literal will be interpreted as one or more new pipelined commands, allowing a CRLF command injection attack to succeed. This affects criteria for #search and #uid_search; search_keys for #sort, #thread, #uid_sort, and #uid_thread; and attr for #fetch and #uid_fetch. This vulnerability is fixed in 0.6.5 and 0.5.15.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.8,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00491,"percentile":0.43091,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"},{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"}],"references":[{"url":"https://github.com/ruby/net-imap/security/advisories/GHSA-8p34-64r3-mwg8","tags":["x_refsource_CONFIRM"]}],"priority":{"score":12.7,"factors":[{"name":"EPSS percentile","points":8.62},{"name":"CVSS severity","points":4.06}]},"vendorSlug":"ruby","affectedVersions":[{"vendor":"ruby","product":"net-imap","versions":[">= 0.6.0, < 0.6.4.1","< 0.5.15"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-23T14:52:09.927243Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"net-imap","vulnerableRanges":[">=0.6.0, <0.6.4.1","<0.5.15"],"patched":["0.6.4.1","0.5.15"],"from":["GHSA-8p34-64r3-mwg8"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-38352","exploited":false,"provenance":"source"}}