{"id":"CVE-2026-47242","published":"2026-06-22T20:19:41Z","modified":"2026-06-23T12:06:49Z","title":"Net::IMAP: Command Injection via ID command 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, when Net::IMAP#id is called with a hash argument, although the ID field value strings are correctly quoted (escaping quoted specials), they were not validated to prohibit CRLF sequences. While Net::IMAP#enable does process its arguments for aliases, it does not validate them as valid atoms (or as a list of valid atoms). The #to_s value is sent verbatim. Arguments to either command could be used by an attacker to inject arbitrary IMAP commands. 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.00184,"percentile":0.04634,"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-46q3-7gv7-qmgg","tags":["x_refsource_CONFIRM"]}],"priority":{"score":5.0,"factors":[{"name":"EPSS percentile","points":0.93},{"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-23T12:06:42.230852Z","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-46q3-7gv7-qmgg"],"provenance":"source"}],"summary":{"text":"The net-imap gem for Ruby, which implements the IMAP client, fails to reject CRLF sequences in values passed to Net::IMAP#id (hash arguments) and does not validate arguments to Net::IMAP#enable as valid IMAP atoms, so the values are sent verbatim. An attacker who can supply those argument values, such as through application code that passes untrusted input to these commands, can inject arbitrary IMAP commands, though exploitation requires local access and user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:49Z"},"euvd":{"id":"EUVD-2026-38353","exploited":false,"provenance":"source"}}