{"id":"DHI-y7ih-gvvc-mm6l-wwph","summary":"Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to 0.6.5 and 0.5.15…","details":"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.","modified":"2026-11-20T14:45:51.188841962Z","published":"2026-11-11T15:54:13Z","upstream":["CVE-2026-47242"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-y7ih-gvvc-mm6l-wwph"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47242"},{"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-47242"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-47242"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-46q3-7gv7-qmgg"},{"type":"ADVISORY","url":"https://github.com/ruby/net-imap/security/advisories/GHSA-46q3-7gv7-qmgg"},{"type":"FIX","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/net-imap/CVE-2026-47242.yml"},{"type":"WEB","url":"https://github.com/ruby/net-imap/releases/tag/v0.6.4.1"},{"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-47242"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-47242"}],"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":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-y7ih-gvvc-mm6l-wwph.json"}},{"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-y7ih-gvvc-mm6l-wwph.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":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-y7ih-gvvc-mm6l-wwph.json","owner_kind":"HSP"}},{"package":{"name":"ruby-3.3","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/ruby-3.3"},"versions":["3.3.11-r3","3.3.12-r3","3.3.13-r3","3.3.14-r3","3.3.14-r4"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-y7ih-gvvc-mm6l-wwph.json","owner_kind":"HSP"}},{"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":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-y7ih-gvvc-mm6l-wwph.json"}},{"package":{"name":"ruby-3.4","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/ruby-3.4"},"versions":["3.4.10-r2","3.4.10-r3","3.4.12-r3","3.4.13-r3","3.4.13-r4","3.4.9-r2"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-y7ih-gvvc-mm6l-wwph.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-y7ih-gvvc-mm6l-wwph.json"}},{"package":{"name":"ruby-4.0","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/ruby-4.0"},"versions":["4.0.10-r4","4.0.10-r5","4.0.5-r3","4.0.6-r3","4.0.6-r4","4.0.7-r4","4.0.9-r4"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-y7ih-gvvc-mm6l-wwph.json","owner_kind":"HSP"}},{"package":{"name":"ruby-net-imap","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/ruby-net-imap"},"versions":["0.5.15-r0","0.5.8-r0"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-y7ih-gvvc-mm6l-wwph.json","owner_kind":"HSP"}},{"package":{"name":"ruby-net-imap","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/ruby-net-imap"},"versions":["0.5.15-r0","0.5.8-r0"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-y7ih-gvvc-mm6l-wwph.json"}}],"schema_version":"1.9.2","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/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"}]}