
CVE catalog
CVE-2026-47240
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 afte
- Severity
- Medium · CVSS 6.5
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.83% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ruby3.1 | bookworm | 3.1.2-7+deb12u1 | vulnerable |
| Debian | ruby3.1 | bookworm-security | 3.1.2-7+deb12u1 | vulnerable |
| Cpe | ruby3.1 | Not reported | Not reported | vulnerable |
| Alpine | ruby-net-imap | 3.24 | 0.5.15-r0 | fixed |
| Alpine | ruby-net-imap | 3.23 | 0.5.15-r0 | fixed |
| Alpine | ruby-net-imap | 3.21 | 0.4.25-r0 | fixed |
| Alpine | ruby-net-imap | 3.22 | 0.5.15-r0 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ruby3.1 | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Alpine | ruby-net-imap | apk | 3.24 | 0.5.15-r0 | Not reported | ALPINE-CVE-2026-47240 | Not reported |
| Alpine | ruby-net-imap | apk | 3.23 | 0.5.15-r0 | Not reported | ALPINE-CVE-2026-47240 | Not reported |
| Alpine | ruby-net-imap | apk | 3.21 | 0.4.25-r0 | Not reported | ALPINE-CVE-2026-47240 | Not reported |
| Alpine | ruby-net-imap | apk | 3.22 | 0.5.15-r0 | Not reported | ALPINE-CVE-2026-47240 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libruby3.1]Affected
Source package: [ruby3.1]
Details (4)
3.1.2-7+deb12u1· amd64 · bookwormAffected
nvd · ruby3.1 · debian · bookworm; nvd · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookwormAffected
nvd · ruby3.1 · debian · bookworm; nvd · ruby3.1 · debian · 12
3.1.2-7+deb12u1· amd64 · bookworm-securityAffected
nvd · ruby3.1 · debian · bookworm; nvd · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookworm-securityAffected
nvd · ruby3.1 · debian · bookworm; nvd · ruby3.1 · debian · 12
- [ruby3.1]Affected
Details (4)
3.1.2-7+deb12u1· amd64 · bookwormAffected
nvd · ruby3.1 · debian · bookworm; nvd · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookwormAffected
nvd · ruby3.1 · debian · bookworm; nvd · ruby3.1 · debian · 12
3.1.2-7+deb12u1· amd64 · bookworm-securityAffected
nvd · ruby3.1 · debian · bookworm; nvd · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookworm-securityAffected
nvd · ruby3.1 · debian · bookworm; nvd · ruby3.1 · debian · 12
- [ruby3.1-dev]Affected
Source package: [ruby3.1]
Details (4)
3.1.2-7+deb12u1· amd64 · bookwormAffected
nvd · ruby3.1 · debian · bookworm; nvd · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookwormAffected
nvd · ruby3.1 · debian · bookworm; nvd · ruby3.1 · debian · 12
3.1.2-7+deb12u1· amd64 · bookworm-securityAffected
nvd · ruby3.1 · debian · bookworm; nvd · ruby3.1 · debian · 12
3.1.2-7+deb12u1· arm64 · bookworm-securityAffected
nvd · ruby3.1 · debian · bookworm; nvd · ruby3.1 · debian · 12
- [ruby3.1-doc]Affected
Source package: [ruby3.1]
Details (4)
3.1.2-7+deb12u1· all · bookwormAffected
nvd · ruby3.1 · debian · bookworm; nvd · ruby3.1 · debian · 12
3.1.2-7+deb12u1· all · bookwormAffected
nvd · ruby3.1 · debian · bookworm; nvd · ruby3.1 · debian · 12
3.1.2-7+deb12u1· all · bookworm-securityAffected
nvd · ruby3.1 · debian · bookworm; nvd · ruby3.1 · debian · 12
3.1.2-7+deb12u1· all · bookworm-securityAffected
nvd · ruby3.1 · debian · bookworm; nvd · ruby3.1 · debian · 12
[Debian 13 (Trixie)]
- [libruby3.3]Affected
Source package: [ruby3.3]
Details (2)
3.3.8-2· amd64 · trixieAffected
nvd · ruby3.3 · debian · 13
3.3.8-2· arm64 · trixieAffected
nvd · ruby3.3 · debian · 13
- [ruby3.3]Affected
Details (2)
3.3.8-2· amd64 · trixieAffected
nvd · ruby3.3 · debian · 13
3.3.8-2· arm64 · trixieAffected
nvd · ruby3.3 · debian · 13
- [ruby3.3-dev]Affected
Source package: [ruby3.3]
Details (2)
3.3.8-2· amd64 · trixieAffected
nvd · ruby3.3 · debian · 13
3.3.8-2· arm64 · trixieAffected
nvd · ruby3.3 · debian · 13
- [ruby3.3-doc]Affected
Source package: [ruby3.3]
Details (2)
3.3.8-2· all · trixieAffected
nvd · ruby3.3 · debian · 13
3.3.8-2· all · trixieAffected
nvd · ruby3.3 · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2026_3090-1.json]
- [https://github.com/ruby/net-imap/security/advisories/GHSA-8p34-64r3-mwg8]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-47240]
- [https://osv.dev/vulnerability/ALPINE-CVE-2026-47240]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-47240]
- [https://security-tracker.debian.org/tracker/CVE-2026-47240]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-47240.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2379.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]