Vulnerabilities

CVE-2026-42245

High 7.5 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2026-05-09
Last modified
2026-07-24
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.4 % higher than 34 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
net-imap (RubyGems) < 0.4.24 Affected
net-imap (RubyGems) ≥ 0.5.0, < 0.5.14 Affected
net-imap (RubyGems) ≥ 0.6.0, < 0.6.4 Affected
Ruby-lang Net::imap < 0.4.24 Affected
Ruby-lang Net::imap ≥ 0.5.0, < 0.5.14 Affected
Ruby-lang Net::imap ≥ 0.6.0, < 0.6.4 Affected

Weakness type

  • CWE-407: Inefficient Algorithmic Complexity

    An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that …

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities