{"id":"DHI-niyp-owdi-yha6-h5xg","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, several Net::IMAP commands accept a \"raw data\" argument that is sent verbatim after validation to prevent command injection. However, if a server does not support non-synchronizing literals, it may still be possible to inject arbitrary IMAP commands inside non-synchronizing literals.  A server without support for non-synchronizing literals may interpret the \"+}\\r\\n\" as the end of a malformed command line and respond with a tagged BAD. In that case, the contents of the literal will be interpreted as one or more new pipelined commands, allowing a CRLF command injection attack to succeed. This affects criteria for #search and #uid_search; search_keys for #sort, #thread, #uid_sort, and #uid_thread; and attr for #fetch and #uid_fetch. This vulnerability is fixed in 0.6.5 and 0.5.15.","modified":"2026-11-20T14:45:40.005990600Z","published":"2026-11-11T15:54:13Z","upstream":["CVE-2026-47240"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-niyp-owdi-yha6-h5xg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47240"},{"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-47240"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-47240"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-8p34-64r3-mwg8"},{"type":"ADVISORY","url":"https://github.com/ruby/net-imap/security/advisories/GHSA-8p34-64r3-mwg8"},{"type":"FIX","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/net-imap/CVE-2026-47240.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-47240"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-47240"}],"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-niyp-owdi-yha6-h5xg.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-niyp-owdi-yha6-h5xg.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-niyp-owdi-yha6-h5xg.json"}},{"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":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-niyp-owdi-yha6-h5xg.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":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-niyp-owdi-yha6-h5xg.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":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-niyp-owdi-yha6-h5xg.json"}},{"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-niyp-owdi-yha6-h5xg.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":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-niyp-owdi-yha6-h5xg.json"}},{"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":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-niyp-owdi-yha6-h5xg.json"}},{"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-niyp-owdi-yha6-h5xg.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"}]}