CVSS 4.0
5.8 mediumCVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:NMedium (5.8) in ruby-lang net\. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in net-imap 0.4.24, 0.5.14, 0.6.4.
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:NCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:Lnet-imap (RubyGems): fixed in 0.6.4, 0.5.14, 0.4.24Explain CVE-2026-42258 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42258?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42258?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-42258 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 NVD's CPE matches.
| Product | Affected |
|---|---|
| ruby-lang:net\ | before 0.4.24 |
| ruby-lang:net\ | from 0.5.0 before 0.5.14 |
| ruby-lang:net\ | from 0.6.0 before 0.6.4 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-75xq-5h9v-w6px | RubyGems | net-imap | >=0.6.0 <0.6.4 | 0.6.4 |
| GHSA-75xq-5h9v-w6px | RubyGems | net-imap | >=0.5.0 <0.5.14 | 0.5.14 |
| GHSA-75xq-5h9v-w6px | RubyGems | net-imap | <0.4.24 | 0.4.24 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | ruby3.1 | no fix listed | DEBIAN-CVE-2026-42258 |
| Debian | 13 | ruby3.3 | 3.3.13-0+deb13u1 | DEBIAN-CVE-2026-42258 DSA-6614-1 |
| Debian | 14 | ruby3.3 | no fix listed | DEBIAN-CVE-2026-42258 |
| Ubuntu | 16.04:LTS, 18.04:LTS, 20.04:LTS and 1 more | jruby | no fix listed | UBUNTU-CVE-2026-42258 |
| Ubuntu | 22.04:LTS | ruby3.0 | no fix listed | UBUNTU-CVE-2026-42258 |
| Ubuntu | 24.04:LTS | jruby, ruby3.2 | no fix listed | UBUNTU-CVE-2026-42258 |
| Ubuntu | 25.10, 26.04:LTS, 26.10 | jruby, ruby3.3 | no fix listed | UBUNTU-CVE-2026-42258 |
| Ubuntu | Pro:16.04:LTS | ruby2.3 | 2.3.1-2~ubuntu16.04.16+esm15 | UBUNTU-CVE-2026-42258 USN-8556-1 |
| Ubuntu | Pro:18.04:LTS | ruby2.5 | no fix listed | UBUNTU-CVE-2026-42258 |
| Ubuntu | Pro:20.04:LTS | ruby2.7 | no fix listed | UBUNTU-CVE-2026-42258 |
| Red Hat | enterprise_linux:8::appstream | ruby, ruby-doc, ruby-irb and 5 more | 0:2.5.9-115.module+el8.10.0+24408+7ffaaa88 | RHSA-2026:33514 |
| Red Hat | enterprise_linux:8::appstream | ruby, ruby-doc, ruby-libs and 7 more | 0:3.3.10-7.module+el8.10.0+24407+4a33a056 | RHSA-2026:33515 |
| Red Hat | enterprise_linux:8::appstream | rubygem-abrt, rubygem-abrt-doc | 0:0.3.0-4.module+el8.10.0+22021+135c76a8 | RHSA-2026:33514 |
| Red Hat | enterprise_linux:8::appstream | rubygem-abrt, rubygem-abrt-doc | 0:0.4.0-1.module+el8.10.0+21226+b78a28c4 | RHSA-2026:33515 |
| Red Hat | enterprise_linux:8::appstream | rubygem-bigdecimal, rubygem-bigdecimal-debuginfo | 0:1.3.4-115.module+el8.10.0+24408+7ffaaa88 | RHSA-2026:33514 |
| Red Hat | enterprise_linux:8::appstream | rubygem-bigdecimal, rubygem-bigdecimal-debuginfo | 0:3.1.5-7.module+el8.10.0+24407+4a33a056 | RHSA-2026:33515 |
| Red Hat | enterprise_linux:8::appstream | rubygem-bson, rubygem-bson-doc, rubygem-bson-debuginfo and 1 more | 0:4.3.0-2.module+el8.9.0+19193+435404ae | RHSA-2026:33514 |
| Red Hat | enterprise_linux:8::appstream | rubygem-bundler | 0:2.5.22-7.module+el8.10.0+24407+4a33a056 | RHSA-2026:33515 |
| Red Hat | enterprise_linux:8::appstream | rubygem-bundler, rubygem-bundler-doc | 0:1.16.1-5.module+el8.10.0+23088+750dc6ca | RHSA-2026:33514 |
| Red Hat | enterprise_linux:8::appstream | rubygem-did_you_mean | 0:1.2.0-115.module+el8.10.0+24408+7ffaaa88 | RHSA-2026:33514 |
| Red Hat | enterprise_linux:8::appstream | rubygem-io-console, rubygem-io-console-debuginfo | 0:0.4.6-115.module+el8.10.0+24408+7ffaaa88 | RHSA-2026:33514 |
| Red Hat | enterprise_linux:8::appstream | rubygem-io-console, rubygem-io-console-debuginfo | 0:0.7.1-7.module+el8.10.0+24407+4a33a056 | RHSA-2026:33515 |
| 278 more for Red Hat in the JSON and on Red Hat's page. | ||||
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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.
Red Hat rates this Important.
This command injection flaw is limited to the injection of IMAP commands. Arbitrary code execution is not a risk of this flaw and so the impact is limited to email systems.
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | ruby4.0-0:4.0.3-35.el10_2 | Fixed 2026-06-30 | RHSA-2026:33540 |
| Red Hat Enterprise Linux 10 | ruby-0:3.3.10-13.el10_2 | Fixed 2026-06-30 | RHSA-2026:33565 |
| Red Hat Enterprise Linux 10.0 Extended Update Support | ruby-0:3.3.10-11.el10_0.2 | Fixed 2026-07-06 | RHSA-2026:35895 |
| Red Hat Enterprise Linux 7 Extended Lifecycle Support | ruby-0:2.0.0.648-39.el7_9.1 | Fixed 2026-07-09 | RHSA-2026:37397 |
| Red Hat Enterprise Linux 8 | ruby:2.5-8100020260615131019.489197e6 | Fixed 2026-06-30 | RHSA-2026:33514 |
| Red Hat Enterprise Linux 8 | ruby:3.3-8100020260615131010.489197e6 | Fixed 2026-06-30 | RHSA-2026:33515 |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | ruby:2.5-8040020260630124058.522a0ee4 | Fixed 2026-07-06 | RHSA-2026:35866 |
| Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | ruby:2.5-8040020260630124058.522a0ee4 | Fixed 2026-07-06 | RHSA-2026:35866 |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | ruby:2.5-8060020260630123825.ad008a3a | Fixed 2026-07-06 | RHSA-2026:35867 |
| Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On | ruby:2.5-8060020260630123825.ad008a3a | Fixed 2026-07-06 | RHSA-2026:35867 |
| 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 Enterprise Linux 6 | ruby | Not affected | |
| 16 more in the JSON and on Red Hat's page. | |||
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-42258.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.