{"id":"DHI-hbje-zbt5-tmy2-qbi6","summary":"Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.4.24…","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.","modified":"2026-11-20T14:45:34.395040016Z","published":"2026-11-11T16:59:50Z","upstream":["CVE-2026-42257"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-hbje-zbt5-tmy2-qbi6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42257"},{"type":"ADVISORY","url":"https://github.com/ruby/net-imap/security/advisories/GHSA-hm49-wcqc-g2xg"},{"type":"WEB","url":"https://github.com/ruby/net-imap/releases/tag/v0.6.4"},{"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.4.24"},{"type":"ADVISORY","url":"https://errata.almalinux.org/8/ALSA-2026-50728.html"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:50728"},{"type":"ADVISORY","url":"https://errata.almalinux.org/9/ALSA-2026-50827.html"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:50827"},{"type":"ADVISORY","url":"https://errata.almalinux.org/9/ALSA-2026-50828.html"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:50828"},{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2026-42257"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-1807.html"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-42258"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-42257"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-42256"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-42246"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-42245"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-27820"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-42257"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-hm49-wcqc-g2xg"},{"type":"FIX","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/net-imap/CVE-2026-42257.yml"},{"type":"FIX","url":"https://github.com/ruby/net-imap/commit/aec06996eb87a7e1bbcef1f9f8926e8add2b8c71"},{"type":"FIX","url":"https://github.com/ruby/net-imap/commit/a4f7649c3da77dec7631f03a037a478eb4330048"},{"type":"FIX","url":"https://github.com/ruby/net-imap/commit/6bf02aef7e0b5931010c36e377f79a71636b306b"},{"type":"FIX","url":"https://github.com/ruby/net-imap/commit/47c72186d272441878ca73c9499f66013829ca2f"},{"type":"FIX","url":"https://github.com/ruby/net-imap/commit/0ec4fd351263e8b9a4f683713427827b7b1ad974"},{"type":"ADVISORY","url":"https://linux.oracle.com/cve/ELSA-2026-50728.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/errata/ELSA-2026-50728.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/cve/ELSA-2026-50773.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/errata/ELSA-2026-50773.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/cve/ELSA-2026-50778.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/errata/ELSA-2026-50778.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/cve/ELSA-2026-50827.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/errata/ELSA-2026-50827.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/cve/ELSA-2026-50828.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/errata/ELSA-2026-50828.html"},{"type":"ADVISORY","url":"https://errata.rockylinux.org/RLSA-2026:50728"},{"type":"ADVISORY","url":"https://errata.rockylinux.org/RLSA-2026:50773"},{"type":"ADVISORY","url":"https://errata.rockylinux.org/RLSA-2026:50778"},{"type":"ADVISORY","url":"https://errata.rockylinux.org/RLSA-2026:50827"},{"type":"ADVISORY","url":"https://errata.rockylinux.org/RLSA-2026:50828"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-42257"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-42257"}],"affected":[{"package":{"name":"ruby-3.2","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/ruby-3.2"},"versions":["3.2.10-r0","3.2.10-r1","3.2.11-r1","3.2.11-r2","3.2.11-r3"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-hbje-zbt5-tmy2-qbi6.json","owner_kind":"HSP"}},{"package":{"name":"ruby-3.2","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/ruby-3.2"},"versions":["3.2.11-r1","3.2.11-r2","3.2.11-r3"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-hbje-zbt5-tmy2-qbi6.json"}},{"package":{"name":"ruby-3.3","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/ruby-3.3"},"versions":["3.3.10-r0","3.3.10-r1","3.3.11-r1","3.3.11-r2","3.3.11-r3","3.3.12-r3","3.3.13-r3","3.3.14-r3","3.3.14-r4"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-hbje-zbt5-tmy2-qbi6.json"}},{"package":{"name":"ruby-3.4","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/ruby-3.4"},"versions":["3.4.10-r2","3.4.10-r3","3.4.11-r3","3.4.12-r3","3.4.13-r3","3.4.13-r4","3.4.8-r0","3.4.8-r1","3.4.9-r1","3.4.9-r2"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-hbje-zbt5-tmy2-qbi6.json","owner_kind":"HSP"}},{"package":{"name":"ruby-4.0","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/ruby-4.0"},"versions":["4.0.1-r0","4.0.1-r1","4.0.10-r4","4.0.10-r5","4.0.2-r1","4.0.2-r2","4.0.3-r2","4.0.4-r2","4.0.4-r3","4.0.5-r3","4.0.6-r3","4.0.6-r4","4.0.7-r4","4.0.9-r4"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-hbje-zbt5-tmy2-qbi6.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"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/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"}]}