cve.bz

CVE-2026-42258 ruby-lang net\: CRLF Injection

5.8 mediumEPSS 0.8%Fix available

Medium (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.

On this page
Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.4.24, 0.5.14, and 0.6.4, symbol arguments to commands are vulnerable to a CRLF Injection / IMAP Command injection via Symbol arguments passed to IMAP commands. This issue has been patched in versions 0.4.24, 0.5.14, and 0.6.4.

Severity

CVSS 4.0

5.8 medium
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N

CVSS 3.1

5.3 medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L
EPSS
0.8% (unchanged from 0.8% a week ago; 1.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 57th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-05-11. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-77 Improper Neutralization of Special Elements used in a Command
CWE-93 Improper Neutralization of CRLF Sequences (CRLF Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain 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.

Affected

  • ruby-lang:net\

Versions

From the NVD's CPE matches.

ProductAffected
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

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-75xq-5h9v-w6pxRubyGemsnet-imap>=0.6.0 <0.6.40.6.4
GHSA-75xq-5h9v-w6pxRubyGemsnet-imap>=0.5.0 <0.5.140.5.14
GHSA-75xq-5h9v-w6pxRubyGemsnet-imap<0.4.240.4.24

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12ruby3.1no fix listedDEBIAN-CVE-2026-42258
Debian13ruby3.33.3.13-0+deb13u1DEBIAN-CVE-2026-42258 DSA-6614-1
Debian14ruby3.3no fix listedDEBIAN-CVE-2026-42258
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 1 morejrubyno fix listedUBUNTU-CVE-2026-42258
Ubuntu22.04:LTSruby3.0no fix listedUBUNTU-CVE-2026-42258
Ubuntu24.04:LTSjruby, ruby3.2no fix listedUBUNTU-CVE-2026-42258
Ubuntu25.10, 26.04:LTS, 26.10jruby, ruby3.3no fix listedUBUNTU-CVE-2026-42258
UbuntuPro:16.04:LTSruby2.32.3.1-2~ubuntu16.04.16+esm15UBUNTU-CVE-2026-42258 USN-8556-1
UbuntuPro:18.04:LTSruby2.5no fix listedUBUNTU-CVE-2026-42258
UbuntuPro:20.04:LTSruby2.7no fix listedUBUNTU-CVE-2026-42258
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-irb and 5 more0:2.5.9-115.module+el8.10.0+24408+7ffaaa88RHSA-2026:33514
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 7 more0:3.3.10-7.module+el8.10.0+24407+4a33a056RHSA-2026:33515
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.3.0-4.module+el8.10.0+22021+135c76a8RHSA-2026:33514
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.10.0+21226+b78a28c4RHSA-2026:33515
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:1.3.4-115.module+el8.10.0+24408+7ffaaa88RHSA-2026:33514
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.1.5-7.module+el8.10.0+24407+4a33a056RHSA-2026:33515
Red Hatenterprise_linux:8::appstreamrubygem-bson, rubygem-bson-doc, rubygem-bson-debuginfo and 1 more0:4.3.0-2.module+el8.9.0+19193+435404aeRHSA-2026:33514
Red Hatenterprise_linux:8::appstreamrubygem-bundler0:2.5.22-7.module+el8.10.0+24407+4a33a056RHSA-2026:33515
Red Hatenterprise_linux:8::appstreamrubygem-bundler, rubygem-bundler-doc0:1.16.1-5.module+el8.10.0+23088+750dc6caRHSA-2026:33514
Red Hatenterprise_linux:8::appstreamrubygem-did_you_mean0:1.2.0-115.module+el8.10.0+24408+7ffaaa88RHSA-2026:33514
Red Hatenterprise_linux:8::appstreamrubygem-io-console, rubygem-io-console-debuginfo0:0.4.6-115.module+el8.10.0+24408+7ffaaa88RHSA-2026:33514
Red Hatenterprise_linux:8::appstreamrubygem-io-console, rubygem-io-console-debuginfo0:0.7.1-7.module+el8.10.0+24407+4a33a056RHSA-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

Red Hat rates this Important.

Red Hat's statement

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.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10ruby4.0-0:4.0.3-35.el10_2Fixed 2026-06-30RHSA-2026:33540
Red Hat Enterprise Linux 10ruby-0:3.3.10-13.el10_2Fixed 2026-06-30RHSA-2026:33565
Red Hat Enterprise Linux 10.0 Extended Update Supportruby-0:3.3.10-11.el10_0.2Fixed 2026-07-06RHSA-2026:35895
Red Hat Enterprise Linux 7 Extended Lifecycle Supportruby-0:2.0.0.648-39.el7_9.1Fixed 2026-07-09RHSA-2026:37397
Red Hat Enterprise Linux 8ruby:2.5-8100020260615131019.489197e6Fixed 2026-06-30RHSA-2026:33514
Red Hat Enterprise Linux 8ruby:3.3-8100020260615131010.489197e6Fixed 2026-06-30RHSA-2026:33515
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportruby:2.5-8040020260630124058.522a0ee4Fixed 2026-07-06RHSA-2026:35866
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onruby:2.5-8040020260630124058.522a0ee4Fixed 2026-07-06RHSA-2026:35866
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportruby:2.5-8060020260630123825.ad008a3aFixed 2026-07-06RHSA-2026:35867
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onruby:2.5-8060020260630123825.ad008a3aFixed 2026-07-06RHSA-2026:35867
Red Hat 3scale API Management Platform 23scale-amp21/systemNot affected
Red Hat 3scale API Management Platform 23scale-amp21/zyncNot affected
Red Hat 3scale API Management Platform 23scale-amp22/systemNot affected
Red Hat 3scale API Management Platform 23scale-amp22/zyncNot affected
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel7Not affected
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel8Not affected
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel9Not affected
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel8Not affected
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel9Not affected
Red Hat Enterprise Linux 6rubyNot 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.

Attack patterns (CAPEC)

  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-40 Manipulating Writeable Terminal Devices Likelihood: High · Severity: Very High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-75 Manipulating Writeable Configuration Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-136 LDAP Injection Likelihood: High · Severity: High
  • CAPEC-183 IMAP/SMTP Command Injection Severity: Medium
  • CAPEC-248 Command Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON