{"id":"CVE-2026-42257","summary":"net-imap: Command Injection via \"raw\" arguments to multiple commands","details":"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.","aliases":["GHSA-hm49-wcqc-g2xg"],"modified":"2026-05-28T03:54:28.864549533Z","published":"2026-05-09T19:39:48.398Z","related":["CGA-p2w5-mpgm-2m5q"],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-77","CWE-93"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42257.json"},"references":[{"type":"WEB","url":"https://github.com/ruby/net-imap/releases/tag/v0.4.24"},{"type":"WEB","url":"https://github.com/ruby/net-imap/releases/tag/v0.5.14"},{"type":"WEB","url":"https://github.com/ruby/net-imap/releases/tag/v0.6.4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42257.json"},{"type":"ADVISORY","url":"https://github.com/ruby/net-imap/security/advisories/GHSA-hm49-wcqc-g2xg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42257"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ruby/net-imap","events":[{"introduced":"567518cae5500f7c4776a1fd4e9bbd599e98b9bf"},{"fixed":"3e490673dca65d0cfeeeb3fbf1fdaa188d6f27c4"}]}],"versions":["v0.6.2","v0.6.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-42257.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"}]}