Live threats

All CVEs / Ruby-lang

CVE-2026-42245Ruby-lang Net::imap

Low 2.3 No auth needed

Priority
29
CVSS 4.0
2.3
EPSS
—
Auth required
No
Published
May 9, 2026
Updated
Jul 24, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-407
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Net::imap.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems net-imap ≥ 0.6.0 < 0.6.4 0.6.4 gem "net-imap", ">= 0.6.4"
RubyGems net-imap ≥ 0.5.0 < 0.5.14 0.5.14 gem "net-imap", ">= 0.5.14"
RubyGems net-imap < 0.4.24 0.4.24 gem "net-imap", ">= 0.4.24"

Per OSV / GitHub Advisories (GHSA-q2mw-fvj9-vvcw). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
ruby-langnet::imap< 0.4.24
ruby-langnet::imap≥ 0.5.0 < 0.5.14
ruby-langnet::imap≥ 0.6.0 < 0.6.4

Official advisories

Also: Red Hat (+9)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.