CVSS 4.0
5.8 mediumCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:NMedium (5.8) in ruby net-imap. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in net-imap 0.5.15, 0.6.4.1.
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:Nnet-imap (RubyGems): fixed in 0.6.4.1, 0.5.15Explain CVE-2026-47240 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-47240?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-47240?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-47240 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| ruby net-imap | >= 0.6.0, < 0.6.4.1 |
| ruby net-imap | < 0.5.15 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-8p34-64r3-mwg8 | RubyGems | net-imap | >=0.6.0 <0.6.4.1 | 0.6.4.1 |
| GHSA-8p34-64r3-mwg8 | RubyGems | net-imap | <0.5.15 | 0.5.15 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | ruby3.1 | no fix listed | DEBIAN-CVE-2026-47240 |
| Debian | 13 | ruby3.3 | 3.3.13-0+deb13u1 | DEBIAN-CVE-2026-47240 DSA-6614-1 |
| Debian | 14 | ruby3.3 | no fix listed | DEBIAN-CVE-2026-47240 |
| Ubuntu | 16.04:LTS, 18.04:LTS, 20.04:LTS and 1 more | jruby | no fix listed | UBUNTU-CVE-2026-47240 |
| Ubuntu | 22.04:LTS | ruby3.0 | no fix listed | UBUNTU-CVE-2026-47240 |
| Ubuntu | 24.04:LTS | jruby, ruby3.2 | no fix listed | UBUNTU-CVE-2026-47240 |
| Ubuntu | 25.10, 26.04:LTS, 26.10 | jruby, ruby3.3 | no fix listed | UBUNTU-CVE-2026-47240 |
| Ubuntu | Pro:16.04:LTS | ruby2.3 | no fix listed | UBUNTU-CVE-2026-47240 |
| Ubuntu | Pro:18.04:LTS | ruby2.5 | no fix listed | UBUNTU-CVE-2026-47240 |
| Ubuntu | Pro:20.04:LTS | ruby2.7 | no fix listed | UBUNTU-CVE-2026-47240 |
| Red Hat | enterprise_linux:8::appstream | ruby, ruby-doc, ruby-libs and 7 more | 0:3.3.12-8.module+el8.10.0+24567+c4e5368e | RHSA-2026:50728 |
| Red Hat | enterprise_linux:8::appstream | rubygem-abrt, rubygem-abrt-doc | 0:0.4.0-1.module+el8.10.0+21226+b78a28c4 | RHSA-2026:50728 |
| Red Hat | enterprise_linux:8::appstream | rubygem-bigdecimal, rubygem-bigdecimal-debuginfo | 0:3.1.5-8.module+el8.10.0+24567+c4e5368e | RHSA-2026:50728 |
| Red Hat | enterprise_linux:8::appstream | rubygem-bundler | 0:2.5.22-8.module+el8.10.0+24567+c4e5368e | RHSA-2026:50728 |
| Red Hat | enterprise_linux:8::appstream | rubygem-io-console, rubygem-io-console-debuginfo | 0:0.7.1-8.module+el8.10.0+24567+c4e5368e | RHSA-2026:50728 |
| Red Hat | enterprise_linux:8::appstream | rubygem-irb | 0:1.13.1-8.module+el8.10.0+24567+c4e5368e | RHSA-2026:50728 |
| Red Hat | enterprise_linux:8::appstream | rubygem-json, rubygem-json-debuginfo | 0:2.7.2-8.module+el8.10.0+24567+c4e5368e | RHSA-2026:50728 |
| Red Hat | enterprise_linux:8::appstream | rubygem-minitest | 0:5.20.0-8.module+el8.10.0+24567+c4e5368e | RHSA-2026:50728 |
| Red Hat | enterprise_linux:8::appstream | rubygem-mysql2, rubygem-mysql2-doc, rubygem-mysql2-debuginfo and 1 more | 0:0.5.5-1.module+el8.10.0+21226+b78a28c4 | RHSA-2026:50728 |
| Red Hat | enterprise_linux:8::appstream | rubygem-pg, rubygem-pg-doc, rubygem-pg-debuginfo and 1 more | 0:1.5.4-1.module+el8.10.0+21226+b78a28c4 | RHSA-2026:50728 |
| Red Hat | enterprise_linux:8::appstream | rubygem-power_assert | 0:2.0.3-8.module+el8.10.0+24567+c4e5368e | RHSA-2026:50728 |
| Red Hat | enterprise_linux:8::appstream | rubygem-psych, rubygem-psych-debuginfo | 0:5.1.2-8.module+el8.10.0+24567+c4e5368e | RHSA-2026:50728 |
| 104 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Linux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Development Tools 15 SP7 | ruby3.4 | 3.4.10-150700.3.4.1 | SUSE-SU-2026:3090-1 |
| openSUSE | Leap 16.0 | ruby3.4 | 3.4.10-160000.1.1 | openSUSE-SU-2026:21878-1 |
| AlmaLinux | 8 | ruby, ruby-doc, ruby-libs and 3 more | 3.3.12-8.module_el8.10.0+4241+4264e34b | ALSA-2026:50728 |
| AlmaLinux | 8 | rubygem-abrt, rubygem-abrt-doc | 0.4.0-1.module_el8.10.0+3799+191214cc | ALSA-2026:50728 |
| AlmaLinux | 8 | rubygem-bigdecimal | 3.1.5-8.module_el8.10.0+4241+4264e34b | ALSA-2026:50728 |
| AlmaLinux | 8 | rubygem-bundler | 2.5.22-8.module_el8.10.0+4241+4264e34b | ALSA-2026:50728 |
| AlmaLinux | 8 | rubygem-io-console | 0.7.1-8.module_el8.10.0+4241+4264e34b | ALSA-2026:50728 |
| AlmaLinux | 8 | rubygem-irb | 1.13.1-8.module_el8.10.0+4241+4264e34b | ALSA-2026:50728 |
| AlmaLinux | 8 | rubygem-json | 2.7.2-8.module_el8.10.0+4241+4264e34b | ALSA-2026:50728 |
| AlmaLinux | 8 | rubygem-minitest | 5.20.0-8.module_el8.10.0+4241+4264e34b | ALSA-2026:50728 |
| AlmaLinux | 8 | rubygem-mysql2, rubygem-mysql2-doc | 0.5.5-1.module_el8.10.0+3799+191214cc | ALSA-2026:50728 |
| AlmaLinux | 8 | rubygem-pg, rubygem-pg-doc | 1.5.4-1.module_el8.10.0+3799+191214cc | ALSA-2026:50728 |
| AlmaLinux | 8 | rubygem-power_assert | 2.0.3-8.module_el8.10.0+4241+4264e34b | ALSA-2026:50728 |
| AlmaLinux | 8 | rubygem-psych | 5.1.2-8.module_el8.10.0+4241+4264e34b | ALSA-2026:50728 |
| 61 more for AlmaLinux in the JSON. | ||||
| Rocky Linux | 8 | ruby | 0:3.3.12-8.module+el8.10.0+40269+dc93e2d1 | RLSA-2026:50728 |
| Rocky Linux | 8 | rubygem-abrt | 0:0.4.0-1.module+el8.10.0+1679+61871737 | RLSA-2026:50728 |
| Rocky Linux | 8 | rubygem-abrt | 0:0.4.0-1.module+el8.10.0+1741+bdb5b6ca | RLSA-2026:50728 |
| Rocky Linux | 8 | rubygem-abrt | 0:0.4.0-1.module+el8.10.0+1820+f3fffb92 | RLSA-2026:50728 |
| Rocky Linux | 8 | rubygem-abrt | 0:0.4.0-1.module+el8.10.0+1826+b62220b4 | RLSA-2026:50728 |
| Rocky Linux | 8 | rubygem-abrt | 0:0.4.0-1.module+el8.10.0+1827+16ecb9d2 | RLSA-2026:50728 |
| Rocky Linux | 8 | rubygem-abrt | 0:0.4.0-1.module+el8.5.0+668+665814fa | RLSA-2026:50728 |
| Rocky Linux | 8 | rubygem-abrt | 0:0.4.0-1.module+el8.9.0+1537+0b2034bd | RLSA-2026:50728 |
| Rocky Linux | 8 | rubygem-mysql2 | 0:0.5.5-1.module+el8.10.0+1679+61871737 | RLSA-2026:50728 |
| Rocky Linux | 8 | rubygem-mysql2 | 0:0.5.5-1.module+el8.10.0+1827+16ecb9d2 | RLSA-2026:50728 |
| Rocky Linux | 8 | rubygem-pg | 0:1.5.4-1.module+el8.10.0+1679+61871737 | RLSA-2026:50728 |
| Rocky Linux | 8 | rubygem-pg | 0:1.5.4-1.module+el8.10.0+1827+16ecb9d2 | RLSA-2026:50728 |
| 8 more for Rocky Linux in the JSON. | ||||
| Alpine | v3.21 | ruby-net-imap | 0.4.25-r0 | ALPINE-CVE-2026-47240 |
| Alpine | v3.22, v3.23, v3.24 | ruby-net-imap | 0.5.15-r0 | ALPINE-CVE-2026-47240 |
| Azure Linux | 3 | ruby | 3.3.13-11 | AZL-91281 |
| Alpaquita | 23 | ruby-net-imap | 0.4.25-r0 | BELL-CVE-2026-47240 |
| Alpaquita | 25, stream | ruby-net-imap | 0.5.15-r0 | BELL-CVE-2026-47240 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.
Red Hat rates this Moderate.
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. This risk is primarily present in deployments interacting with older or non-standard IMAP server configurations.
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.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | ruby4.0-0:4.0.6-36.el10_2 | Fixed 2026-08-05 | RHSA-2026:50773 |
| Red Hat Enterprise Linux 10 | ruby-0:3.3.12-14.el10_2 | Fixed 2026-08-05 | RHSA-2026:50778 |
| Red Hat Enterprise Linux 8 | ruby:3.3-8100020260727154509.489197e6 | Fixed 2026-08-05 | RHSA-2026:50728 |
| Red Hat Enterprise Linux 9 | ruby:4.0-9080020260727092509.9 | Fixed 2026-08-05 | RHSA-2026:50827 |
| Red Hat Enterprise Linux 9 | ruby:3.3-9080020260728061751.9 | Fixed 2026-08-05 | RHSA-2026:50828 |
| Red Hat Hardened Images | ruby4-0-main-0.3.2-33.4.hum1 | Fixed 2026-06-30 | RHSA-2026:33551 |
| Red Hat Hardened Images | ruby4-0-main-4.0.0-33.4.hum1 | Fixed 2026-06-30 | RHSA-2026:33551 |
| Red Hat Hardened Images | ruby3-3-main-0.21.9-23.4.hum1 | Fixed 2026-07-15 | RHSA-2026:40380 |
| Red Hat Hardened Images | ruby3-3-main-3.3.10-23.4.hum1 | Fixed 2026-07-15 | RHSA-2026:40380 |
| Red Hat 3scale API Management Platform 2 | 3scale-amp21/system | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp21/zync | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp22/system | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp22/zync | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/system-rhel7 | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/system-rhel8 | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/system-rhel9 | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/zync-rhel8 | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/zync-rhel9 | Not affected | |
| Red Hat Hardened Images | ruby3.4 | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-47240.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.