| Name | CVE-2026-47240 |
| Description | 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DSA-6614-1 |
| Debian Bugs | 1141319 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| ruby3.1 (PTS) | bookworm | 3.1.2-7+deb12u1 | vulnerable |
| bookworm (security) | 3.1.7+really3.1.2-0+deb12u1 | vulnerable | |
| ruby3.3 (PTS) | trixie | 3.3.8-2 | vulnerable |
| trixie (security) | 3.3.14-0+deb13u1 | fixed | |
| forky | 3.3.8-2.2 | vulnerable | |
| sid | 3.3.14-0.1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| ruby2.7 | source | (unstable) | (unfixed) | |||
| ruby3.1 | source | (unstable) | (unfixed) | |||
| ruby3.3 | source | trixie | 3.3.13-0+deb13u1 | DSA-6614-1 | ||
| ruby3.3 | source | (unstable) | 3.3.14-0.1 | 1141319 |
https://github.com/ruby/net-imap/security/advisories/GHSA-8p34-64r3-mwg8