Vulnerability · Published May 9, 2026 · Assigned by GitHub_M

CVE-2026-42245net-imap: Quadratic complexity when reading response literals

Low 2.3

In plain English

A low-severity security flaw in net-imap from ruby. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 35% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)2.3Low
Exploit odds (30 days)0.4%top 64.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10ruby3.3.10-13.el10_2ALSA-2026:33565
AlmaLinux:8ruby3.3.10-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9ruby4.0.3-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:9ruby3.3.10-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:10ruby-bundled-gems3.3.10-13.el10_2ALSA-2026:33565
AlmaLinux:8ruby-bundled-gems3.3.10-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9ruby-bundled-gems3.3.10-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:9ruby-bundled-gems4.0.3-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:10ruby-default-gems3.3.10-13.el10_2ALSA-2026:33565
AlmaLinux:8ruby-default-gems3.3.10-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9ruby-default-gems3.3.10-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:9ruby-default-gems4.0.3-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:10ruby-devel3.3.10-13.el10_2ALSA-2026:33565
AlmaLinux:8ruby-devel3.3.10-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9ruby-devel4.0.3-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:9ruby-devel3.3.10-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:10ruby-doc3.3.10-13.el10_2ALSA-2026:33565
AlmaLinux:8ruby-doc3.3.10-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9ruby-doc3.3.10-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:9ruby-doc4.0.3-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:10ruby-libs3.3.10-13.el10_2ALSA-2026:33565
AlmaLinux:8ruby-libs3.3.10-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9ruby-libs3.3.10-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:9ruby-libs4.0.3-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:10ruby4.04.0.3-35.el10_2ALSA-2026:33540
AlmaLinux:10ruby4.0-devel4.0.3-35.el10_2ALSA-2026:33540
AlmaLinux:10ruby4.0-doc4.0.3-35.el10_2ALSA-2026:33540
AlmaLinux:10ruby4.0-rubygem-mysql20.5.7-35.el10_2ALSA-2026:33540
AlmaLinux:10ruby4.0-rubygem-pg1.6.3-35.el10_2ALSA-2026:33540
AlmaLinux:8rubygem-abrt0.4.0-1.module_el8.10.0+3799+191214ccALSA-2026:33515
AlmaLinux:8rubygem-abrt-doc0.4.0-1.module_el8.10.0+3799+191214ccALSA-2026:33515
AlmaLinux:10rubygem-bigdecimal3.1.5-13.el10_2ALSA-2026:33565
AlmaLinux:8rubygem-bigdecimal3.1.5-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9rubygem-bigdecimal3.1.5-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:9rubygem-bigdecimal4.0.1-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:10rubygem-bundler2.5.22-13.el10_2ALSA-2026:33565
AlmaLinux:8rubygem-bundler2.5.22-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9rubygem-bundler2.5.22-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:9rubygem-bundler4.0.6-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:10rubygem-io-console0.7.1-13.el10_2ALSA-2026:33565
AlmaLinux:8rubygem-io-console0.7.1-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9rubygem-io-console0.7.1-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:9rubygem-io-console0.8.2-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:10rubygem-irb1.13.1-13.el10_2ALSA-2026:33565
AlmaLinux:8rubygem-irb1.13.1-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9rubygem-irb1.16.0-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:9rubygem-irb1.13.1-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:10rubygem-json2.7.2-13.el10_2ALSA-2026:33565
AlmaLinux:8rubygem-json2.7.2-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9rubygem-json2.18.0-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:9rubygem-json2.7.2-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:10rubygem-minitest5.20.0-13.el10_2ALSA-2026:33565
AlmaLinux:8rubygem-minitest5.20.0-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9rubygem-minitest6.0.0-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:9rubygem-minitest5.20.0-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:8rubygem-mysql20.5.5-1.module_el8.10.0+3799+191214ccALSA-2026:33515
AlmaLinux:9rubygem-mysql20.5.5-3.module_el9.7.0+184+e2e36072ALSA-2026:33576
AlmaLinux:9rubygem-mysql20.5.7-1.module_el9.8.0+232+50f6dd36ALSA-2026:33577
AlmaLinux:8rubygem-mysql2-doc0.5.5-1.module_el8.10.0+3799+191214ccALSA-2026:33515
AlmaLinux:9rubygem-mysql2-doc0.5.7-1.module_el9.8.0+232+50f6dd36ALSA-2026:33577
AlmaLinux:9rubygem-mysql2-doc0.5.5-3.module_el9.7.0+184+e2e36072ALSA-2026:33576
AlmaLinux:8rubygem-pg1.5.4-1.module_el8.10.0+3799+191214ccALSA-2026:33515
AlmaLinux:9rubygem-pg1.5.4-2.module_el9.7.0+245+447713a2ALSA-2026:33576
AlmaLinux:9rubygem-pg1.6.3-1.module_el9.8.0+232+50f6dd36ALSA-2026:33577
AlmaLinux:8rubygem-pg-doc1.5.4-1.module_el8.10.0+3799+191214ccALSA-2026:33515
AlmaLinux:9rubygem-pg-doc1.6.3-1.module_el9.8.0+232+50f6dd36ALSA-2026:33577
AlmaLinux:9rubygem-pg-doc1.5.4-2.module_el9.7.0+245+447713a2ALSA-2026:33576
AlmaLinux:10rubygem-power_assert2.0.3-13.el10_2ALSA-2026:33565
AlmaLinux:8rubygem-power_assert2.0.3-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9rubygem-power_assert3.0.1-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:9rubygem-power_assert2.0.3-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:10rubygem-psych5.1.2-13.el10_2ALSA-2026:33565
AlmaLinux:8rubygem-psych5.1.2-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9rubygem-psych5.1.2-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:9rubygem-psych5.3.1-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:10rubygem-racc1.7.3-13.el10_2ALSA-2026:33565
AlmaLinux:8rubygem-racc1.7.3-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9rubygem-racc1.7.3-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:9rubygem-racc1.8.1-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:10rubygem-rake13.1.0-13.el10_2ALSA-2026:33565
AlmaLinux:8rubygem-rake13.1.0-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9rubygem-rake13.1.0-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:9rubygem-rake13.3.1-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:10rubygem-rbs3.4.0-13.el10_2ALSA-2026:33565
AlmaLinux:8rubygem-rbs3.4.0-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9rubygem-rbs3.4.0-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:9rubygem-rbs3.10.0-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:10rubygem-rdoc6.6.3.1-13.el10_2ALSA-2026:33565
AlmaLinux:8rubygem-rdoc6.6.3.1-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9rubygem-rdoc7.0.3-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:9rubygem-rdoc6.6.3.1-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:10rubygem-rexml3.4.4-13.el10_2ALSA-2026:33565
AlmaLinux:8rubygem-rexml3.4.4-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9rubygem-rexml3.4.4-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:9rubygem-rexml3.4.4-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:10rubygem-rss0.3.1-13.el10_2ALSA-2026:33565
AlmaLinux:8rubygem-rss0.3.1-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9rubygem-rss0.3.2-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:9rubygem-rss0.3.1-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:10rubygem-test-unit3.6.1-13.el10_2ALSA-2026:33565
AlmaLinux:8rubygem-test-unit3.6.1-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9rubygem-test-unit3.7.5-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:9rubygem-test-unit3.6.1-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:10rubygem-typeprof0.21.9-13.el10_2ALSA-2026:33565
AlmaLinux:8rubygem-typeprof0.21.9-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9rubygem-typeprof0.31.1-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:9rubygem-typeprof0.21.9-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:10rubygems3.5.22-13.el10_2ALSA-2026:33565
AlmaLinux:8rubygems3.5.22-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9rubygems3.5.22-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:9rubygems4.0.6-33.module_el9.8.0+273+a67497baALSA-2026:33577
AlmaLinux:10rubygems-devel3.5.22-13.el10_2ALSA-2026:33565
AlmaLinux:8rubygems-devel3.5.22-7.module_el8.10.0+4210+b037b1ecALSA-2026:33515
AlmaLinux:9rubygems-devel3.5.22-7.module_el9.8.0+272+38177c5fALSA-2026:33576
AlmaLinux:9rubygems-devel4.0.6-33.module_el9.8.0+273+a67497baALSA-2026:33577
Alpine:v3.21ruby-net-imap0.4.25-r0ALPINE-CVE-2026-42245
Debian:12ruby3.1no fix listedDEBIAN-CVE-2026-42245
Debian:13ruby3.3no fix listedDEBIAN-CVE-2026-42245
Debian:14ruby3.3no fix listedDEBIAN-CVE-2026-42245
Rocky Linux:10ruby0:3.3.10-13.el10_2RLSA-2026:33565
Rocky Linux:10ruby4.00:4.0.3-35.el10_2RLSA-2026:33540
Rocky Linux:8rubygem-abrt0:0.4.0-1.module+el8.10.0+1826+b62220b4RLSA-2026:33515
Rocky Linux:8rubygem-abrt0:0.4.0-1.module+el8.10.0+1679+61871737RLSA-2026:33515
Rocky Linux:8rubygem-abrt0:0.4.0-1.module+el8.10.0+1741+bdb5b6caRLSA-2026:33515
Rocky Linux:8rubygem-abrt0:0.4.0-1.module+el8.10.0+1827+16ecb9d2RLSA-2026:33515
Rocky Linux:8rubygem-abrt0:0.4.0-1.module+el8.5.0+668+665814faRLSA-2026:33515
Rocky Linux:8rubygem-abrt0:0.4.0-1.module+el8.10.0+1820+f3fffb92RLSA-2026:33515
Rocky Linux:8rubygem-abrt0:0.4.0-1.module+el8.9.0+1537+0b2034bdRLSA-2026:33515
Rocky Linux:8rubygem-mysql20:0.5.5-1.module+el8.10.0+1679+61871737RLSA-2026:33515
Rocky Linux:8rubygem-mysql20:0.5.5-1.module+el8.10.0+1827+16ecb9d2RLSA-2026:33515
Rocky Linux:9rubygem-mysql20:0.5.5-3.module+el9.7.0+40032+36e56d0dRLSA-2026:33576
Rocky Linux:9rubygem-mysql20:0.5.7-1.module+el9.8.0+40094+ce01217cRLSA-2026:33577
Rocky Linux:8rubygem-pg0:1.5.4-1.module+el8.10.0+1827+16ecb9d2RLSA-2026:33515
Rocky Linux:8rubygem-pg0:1.5.4-1.module+el8.10.0+1679+61871737RLSA-2026:33515
Rocky Linux:9rubygem-pg0:1.5.4-2.module+el9.7.0+40188+314ad260.0.1RLSA-2026:33576
Rocky Linux:9rubygem-pg0:1.6.3-1.module+el9.8.0+40094+ce01217cRLSA-2026:33577
RubyGemsnet-imap0.6.4GHSA-q2mw-fvj9-vvcw
RubyGemsnet-imap0.5.14GHSA-q2mw-fvj9-vvcw
RubyGemsnet-imap0.4.24GHSA-q2mw-fvj9-vvcw
Ubuntu:25.10jrubyno fix listedUBUNTU-CVE-2026-42245
Ubuntu:26.10jrubyno fix listedUBUNTU-CVE-2026-42245
Ubuntu:25.10ruby3.3no fix listedUBUNTU-CVE-2026-42245
Ubuntu:26.10ruby3.3no fix listedUBUNTU-CVE-2026-42245

Affected products (as reported)

VendorProductVersions
ruby net-imap < 0.4.24>= 0.5.0, < 0.5.14>= 0.6.0, < 0.6.4

Weakness: CWE-407 · Vector: 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

References