{"id":"CVE-2026-42257","published":"2026-05-09T19:39:48Z","modified":"2026-05-13T19:33:13Z","title":"net-imap: Command Injection via \"raw\" arguments to multiple commands","vendor":"ruby","product":"net-imap","tier":"tail","description":{"text":"Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.4.24, 0.5.14, and 0.6.4, several Net::IMAP commands accept a raw string argument that is sent to the server without validation or escaping. If this string is derived from user-controlled input, it may contain contain CRLF sequences, which an attacker can use to inject arbitrary IMAP commands. This issue has been patched in versions 0.4.24, 0.5.14, and 0.6.4.","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.00519,"percentile":0.374,"provenance":"source"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"},{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://github.com/ruby/net-imap/security/advisories/GHSA-hm49-wcqc-g2xg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ruby/net-imap/releases/tag/v0.4.24","tags":["x_refsource_MISC"]},{"url":"https://github.com/ruby/net-imap/releases/tag/v0.5.14","tags":["x_refsource_MISC"]},{"url":"https://github.com/ruby/net-imap/releases/tag/v0.6.4","tags":["x_refsource_MISC"]}],"priority":{"score":11.5,"factors":[{"name":"EPSS percentile","points":7.48},{"name":"CVSS severity","points":4.06}]},"vendorSlug":"ruby","affectedVersions":[{"vendor":"ruby","product":"net-imap","versions":["< 0.4.24",">= 0.5.0, < 0.5.14",">= 0.6.0, < 0.6.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-13T19:27:16.888782Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"net-imap","vulnerableRanges":[">=0.6.0, <0.6.4",">=0.5.0, <0.5.14","<0.4.24"],"patched":["0.6.4","0.5.14","0.4.24"],"from":["GHSA-hm49-wcqc-g2xg"],"provenance":"source"}],"summary":{"text":"The net-imap library for Ruby, which implements IMAP client functionality, has a command injection flaw in several of its commands that accept a raw string argument sent to the server without validation or escaping. An attacker who can influence that string with CRLF sequences can inject arbitrary IMAP commands, though exploitation requires local access (per the attack vector), a user to interact with the crafted input, and an application that passes user-controlled data into those commands.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:59Z"},"euvd":{"id":"EUVD-2026-28926","exploited":false,"provenance":"source"}}