Medium [CVE-2026-47240] Net::IMAP: Command injection via non-synchronizing literals
This medium-severity Red Hat Linux advisory covers CVE-2026-47240 affecting Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9.
Aggregated and source-linked by VulniPulse. Data sources, validation and limitations.
VulniPulse record published Record updated
Summary
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. This command injection could enable unauthorized actions on the IMAP server.
This Moderate flaw in the Net::IMAP Ruby library allows for command injection against IMAP servers that lack support for non-synchronizing literals. An attacker could exploit this by providing specially crafted input, leading to the execution of arbitrary IMAP commands and potential unauthorized actions.
Is CVE-2026-47240 exploited?
No exploitation is reported in the sources VulniPulse tracks: CVE-2026-47240 is not in the CISA KEV catalog (checked ) and this advisory does not report exploitation. That is not proof the vulnerability cannot be exploited.
How do I fix CVE-2026-47240?
Upgrade to a fixed release named by Red Hat:
- 0.6.5
- 0.5.15
- ruby4.0-0:4.0.6-36.el10_2
- ruby-0:3.3.12-14.el10_2
- ruby:3.3-8100020260727154509.489197e6
- ruby:4.0-9080020260727092509.9
- ruby:3.3-9080020260728061751.9
- ruby4-0-main-0.3.2-33.4.hum1
- ruby3-3-main-0.21.9-23.4.hum1
- RHSA-2026:50773
- RHSA-2026:50778
- RHSA-2026:50728
4 more fixed releases are listed below.
Confirm against the vendor advisory before you patch.
- < 0.6.5
- < 0.5.15
Official advisory · high-confidence parse· fetched 14 days ago·verify at source
- 0.6.5
- 0.5.15
- ruby4.0-0:4.0.6-36.el10_2
- ruby-0:3.3.12-14.el10_2
- ruby:3.3-8100020260727154509.489197e6
- ruby:4.0-9080020260727092509.9
- ruby:3.3-9080020260728061751.9
- ruby4-0-main-0.3.2-33.4.hum1
- ruby3-3-main-0.21.9-23.4.hum1
- RHSA-2026:50773
- RHSA-2026:50778
- RHSA-2026:50728
- RHSA-2026:50827
- RHSA-2026:50828
- RHSA-2026:33551
- RHSA-2026:40380
Official advisory · high-confidence parse· fetched 14 days ago·verify at source
Mitigation checklist
- Explicitly validate user-controlled inputs to prevent embedded non-synchronizing literals unless the server supports them. For a simpler, more cautious approach: all embedded literals can be unconditionally prohibited, by checking that string inputs do not contain any CR or LF bytes.
Official advisory · high-confidence parse· fetched 14 days ago·verify at source
Get an email when Red Hat RHEL & SELinux publishes the next one.
See Red Hat RHEL & SELinux's last 90 days of advisories first. Then choose one product with live alerts free for life, or a free month of real-time alerts on everything with the severity, the fixed version and the vendor's link (card needed, then US$15/month; we email you before the first charge).
More Red Hat Linux advisories
- CVE-2026-111497Oct 22, 2026Out-of-Bounds Write in Google Brotli Decoder
- CVE-2026-109619Oct 21, 2026fatal error handling retains stale request state leading to use-after-free
- CVE-2026-109618Oct 21, 2026OOM bailout during request parsing leads to memory corruption and RCE
- CVE-2026-119977Oct 31, 2026Arbitrary code execution via predictable upgrade staging paths
- CVE-2026-97229Oct 13, 2026integer overflow issue in CI/CD regular expression compiler
- CVE-2026-64849Aug 17, 2026Unauthenticated full-read SSRF in webhook delivery: _validate_webhook_url bypassed
iPhone and Android apps · New on the App Store
Monitor future Red Hat Linux CVEs from your phone.
Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 34 official vendor sources and 160+ reviewed platform categories.
Discussion(0)
No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.
Sign in to join the discussion.