cve.bz

CVE-2026-42245 ruby-lang net\: Inefficient Algorithmic Complexity

2.3 lowEPSS 0.4%Fix available

Low (2.3) in ruby-lang net\. EPSS 0.4% 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, Net::IMAP::ResponseReader has quadratic time complexity when reading large responses containing many string literals. A hostile server can send responses which are crafted to exhaust the client's CPU for a denial of service attack. This issue has been patched in versions 0.4.24, 0.5.14, and 0.6.4.

Severity

CVSS 4.0

2.3 low
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 36th 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-12. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-407 Inefficient Algorithmic Complexity
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-42245 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42245?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42245?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-42245 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-q2mw-fvj9-vvcwRubyGemsnet-imap>=0.6.0 <0.6.40.6.4
GHSA-q2mw-fvj9-vvcwRubyGemsnet-imap>=0.5.0 <0.5.140.5.14
GHSA-q2mw-fvj9-vvcwRubyGemsnet-imap<0.4.240.4.24

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12ruby3.1no fix listedDEBIAN-CVE-2026-42245
Debian13ruby3.33.3.13-0+deb13u1DEBIAN-CVE-2026-42245 DSA-6614-1
Debian14ruby3.3no fix listedDEBIAN-CVE-2026-42245
Ubuntu25.10, 26.10jruby, ruby3.3no fix listedUBUNTU-CVE-2026-42245
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.4.0-1.module+el8.10.0+21226+b78a28c4RHSA-2026:33515
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-bundler0:2.5.22-7.module+el8.10.0+24407+4a33a056RHSA-2026:33515
Red Hatenterprise_linux:8::appstreamrubygem-io-console, rubygem-io-console-debuginfo0:0.7.1-7.module+el8.10.0+24407+4a33a056RHSA-2026:33515
Red Hatenterprise_linux:8::appstreamrubygem-irb0:1.13.1-7.module+el8.10.0+24407+4a33a056RHSA-2026:33515
Red Hatenterprise_linux:8::appstreamrubygem-json, rubygem-json-debuginfo0:2.7.2-7.module+el8.10.0+24407+4a33a056RHSA-2026:33515
Red Hatenterprise_linux:8::appstreamrubygem-minitest0:5.20.0-7.module+el8.10.0+24407+4a33a056RHSA-2026:33515
Red Hatenterprise_linux:8::appstreamrubygem-mysql2, rubygem-mysql2-doc, rubygem-mysql2-debuginfo and 1 more0:0.5.5-1.module+el8.10.0+21226+b78a28c4RHSA-2026:33515
Red Hatenterprise_linux:8::appstreamrubygem-pg, rubygem-pg-doc, rubygem-pg-debuginfo and 1 more0:1.5.4-1.module+el8.10.0+21226+b78a28c4RHSA-2026:33515
Red Hatenterprise_linux:8::appstreamrubygem-power_assert0:2.0.3-7.module+el8.10.0+24407+4a33a056RHSA-2026:33515
Red Hatenterprise_linux:8::appstreamrubygem-psych, rubygem-psych-debuginfo0:5.1.2-7.module+el8.10.0+24407+4a33a056RHSA-2026:33515
198 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux8ruby, ruby-doc, ruby-libs and 3 more3.3.10-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.10.0+3799+191214ccALSA-2026:33515
AlmaLinux8rubygem-bigdecimal3.1.5-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux8rubygem-bundler2.5.22-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux8rubygem-io-console0.7.1-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux8rubygem-irb1.13.1-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux8rubygem-json2.7.2-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux8rubygem-minitest5.20.0-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux8rubygem-mysql2, rubygem-mysql2-doc0.5.5-1.module_el8.10.0+3799+191214ccALSA-2026:33515
AlmaLinux8rubygem-pg, rubygem-pg-doc1.5.4-1.module_el8.10.0+3799+191214ccALSA-2026:33515
AlmaLinux8rubygem-power_assert2.0.3-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux8rubygem-psych5.1.2-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
61 more for AlmaLinux in the JSON.
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1679+61871737RLSA-2026:33515
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1741+bdb5b6caRLSA-2026:33515
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1820+f3fffb92RLSA-2026:33515
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1826+b62220b4RLSA-2026:33515
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1827+16ecb9d2RLSA-2026:33515
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.5.0+668+665814faRLSA-2026:33515
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.9.0+1537+0b2034bdRLSA-2026:33515
Rocky Linux8rubygem-mysql20:0.5.5-1.module+el8.10.0+1679+61871737RLSA-2026:33515
Rocky Linux8rubygem-mysql20:0.5.5-1.module+el8.10.0+1827+16ecb9d2RLSA-2026:33515
Rocky Linux8rubygem-pg0:1.5.4-1.module+el8.10.0+1679+61871737RLSA-2026:33515
Rocky Linux8rubygem-pg0:1.5.4-1.module+el8.10.0+1827+16ecb9d2RLSA-2026:33515
Rocky Linux9rubygem-mysql20:0.5.5-3.module+el9.7.0+40032+36e56d0dRLSA-2026:33576
1 more for Rocky Linux in the JSON.

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; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat has rated this flaw as Moderate because a malicious IMAP server can trigger excessive CPU consumption, resulting in a denial-of-service (DoS) condition in client applications using the affected Net::IMAP library. Successful exploitation requires interaction with a hostile server, and the impact is strictly limited to resource exhaustion of the client process. The vulnerability does not allow code execution, privilege escalation, or unauthorized access to data.

Regarding Red Hat Satellite: the Satellite-shipped puppet-agent package may include Net::IMAP / net-imap files under /opt/puppetlabs as part of the bundled Puppet Ruby runtime. Satellite does not use Net::IMAP for its supported email notification functionality (SMTP is used instead), and the vulnerable IMAP client operations are not exercised on a supported Satellite attack path. Presence of these files in puppet-agent therefore does not change the assessment that these CVEs are not applicable to Red Hat Satellite. Scanner findings based solely on on-disk gem presence should be treated as false positives for Satellite product impact.

Red Hat's mitigation

To reduce the risk of a denial of service, ensure that applications using the Net::IMAP library are configured to connect exclusively to trusted IMAP servers. Avoid connecting to untrusted or unverified IMAP services, as a hostile server can exploit this vulnerability. This operational control helps prevent exposure to malicious IMAP response processing.

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 8ruby:3.3-8100020260615131010.489197e6Fixed 2026-06-30RHSA-2026:33515
Red Hat Enterprise Linux 9ruby:3.3-9080020260615131001.9Fixed 2026-06-30RHSA-2026:33576
Red Hat Enterprise Linux 9ruby:4.0-9080020260619130154.9Fixed 2026-06-30RHSA-2026:33577
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutionsruby:3.3-9040020260630065449.9Fixed 2026-07-07RHSA-2026:36099
Red Hat Enterprise Linux 9.6 Extended Update Supportruby:3.3-9060020260630075016.9Fixed 2026-07-09RHSA-2026:37238
Red Hat Hardened Imagesruby4-0-main-0.3.2-33.4.hum1Fixed 2026-06-30RHSA-2026:33551
Red Hat Hardened Imagesruby4-0-main-4.0.0-33.4.hum1Fixed 2026-06-30RHSA-2026:33551
Red Hat Hardened Imagesruby3-4-main-0.3.1-31.2.hum1Fixed 2026-06-30RHSA-2026:33552
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
4 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-42245.

References

Check your stackJSON