{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-42257","id":"CVE-2026-42257","title":"net-imap: Command Injection via \"raw\" arguments to multiple commands","description":"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 comma","descriptionLong":"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.","published":"2026-05-09T19:39:48.398Z","updated":"2026-10-28T02:30:50.599778976Z","reserved":"2026-04-26T11:53:27.704Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":5.8,"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","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"4.0","score":5.8,"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","rating":"medium","source":"GitHub_M"},{"version":"4.0","score":5.8,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"medium","source":"GitHub"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"}],"rating":"medium","products":["ruby net-imap"],"affectedProducts":[{"vendor":"ruby","product":"net-imap","defaultStatus":null,"versions":[{"version":"< 0.4.24","status":"affected"},{"version":">= 0.5.0, < 0.5.14","status":"affected"},{"version":">= 0.6.0, < 0.6.4","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"net-imap","purl":"pkg:gem/net-imap","ranges":[">=0.6.0 <0.6.4",">=0.5.0 <0.5.14","<0.4.24"],"fixed":["0.6.4","0.5.14","0.4.24"],"advisory":"GHSA-hm49-wcqc-g2xg"}],"cwes":["CWE-93","CWE-77"],"aliases":["GHSA-hm49-wcqc-g2xg"],"references":[{"url":"https://github.com/ruby/net-imap/security/advisories/GHSA-hm49-wcqc-g2xg","tags":["x_refsource_CONFIRM","Mitigation","Vendor Advisory","advisory","web"]},{"url":"https://github.com/ruby/net-imap/releases/tag/v0.4.24","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://github.com/ruby/net-imap/releases/tag/v0.5.14","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://github.com/ruby/net-imap/releases/tag/v0.6.4","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42257.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42257","tags":["advisory"]},{"url":"https://github.com/ruby/net-imap/commit/0ec4fd351263e8b9a4f683713427827b7b1ad974","tags":["web"]},{"url":"https://github.com/ruby/net-imap/commit/47c72186d272441878ca73c9499f66013829ca2f","tags":["web"]},{"url":"https://github.com/ruby/net-imap/commit/6bf02aef7e0b5931010c36e377f79a71636b306b","tags":["web"]},{"url":"https://github.com/ruby/net-imap/commit/a4f7649c3da77dec7631f03a037a478eb4330048","tags":["web"]},{"url":"https://github.com/ruby/net-imap/commit/aec06996eb87a7e1bbcef1f9f8926e8add2b8c71","tags":["web"]},{"url":"https://github.com/ruby/net-imap","tags":["package"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/net-imap/CVE-2026-42257.yml","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00429,"epssPercentile":0.379,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-42257","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42257","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-42257","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-hm49-wcqc-g2xg","ok":true,"note":"GHSA-hm49-wcqc-g2xg"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-42257","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}