{"cve":"CVE-2026-47240","nvd":{"published":"2026-06-22T21:16:24.543","modified":"2026-10-25T23:10:00.167","status":"Deferred","description":"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.","cvss_v4":{"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","score":5.8},"cvss_v3":null,"cwes":["CWE-77","CWE-93"],"references":["https://github.com/ruby/net-imap/security/advisories/GHSA-8p34-64r3-mwg8"],"products":[],"source":"nvd","synced_at":"2026-10-25T23:44:33.281319194+00:00"},"epss":{"cve":"CVE-2026-47240","score":0.00831,"percentile":0.57303,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-8p34-64r3-mwg8","url":"https://osv.dev/vulnerability/GHSA-8p34-64r3-mwg8","summary":"Net::IMAP: Command Injection via non-synchronizing literal in \"raw\" argument","modified":"2026-09-10T03:51:08.225147750Z","packages":[{"ecosystem":"RubyGems","name":"net-imap","purl":"pkg:gem/net-imap","ranges":[">=0.6.0 <0.6.4.1"],"fixed":["0.6.4.1"]},{"ecosystem":"RubyGems","name":"net-imap","purl":"pkg:gem/net-imap","ranges":["<0.5.15"],"fixed":["0.5.15"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}