{"id":"CVE-2026-42245","published":"2026-05-09T19:37:08Z","modified":"2026-05-12T18:30:58Z","title":"net-imap: Quadratic complexity when reading response literals","vendor":"ruby","product":"net-imap","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.3,"severity":"LOW","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.007,"percentile":0.48679,"provenance":"source"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/ruby/net-imap/security/advisories/GHSA-q2mw-fvj9-vvcw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ruby/net-imap/commit/6091f7d6b1f3514cafbfe39c76f2b5d73de3ca96","tags":["x_refsource_MISC"]},{"url":"https://github.com/ruby/net-imap/commit/88d95231fc8afef11c1f074453f7d75b68c9dfda","tags":["x_refsource_MISC"]},{"url":"https://github.com/ruby/net-imap/commit/de685f91a4a4cc75eb80da898c2bf8af08d34819","tags":["x_refsource_MISC"]},{"url":"https://github.com/ruby/net-imap/releases/tag/v0.4.24","tags":["x_refsource_MISC"]},{"url":"https://github.com/ruby/net-imap/releases/tag/v0.5.14","tags":["x_refsource_MISC"]},{"url":"https://github.com/ruby/net-imap/releases/tag/v0.6.4","tags":["x_refsource_MISC"]}],"priority":{"score":11.3,"factors":[{"name":"EPSS percentile","points":9.74},{"name":"CVSS severity","points":1.61}]},"vendorSlug":"ruby","affectedVersions":[{"vendor":"ruby","product":"net-imap","versions":["< 0.4.24",">= 0.5.0, < 0.5.14",">= 0.6.0, < 0.6.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-12T17:53:55.917796Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"net-imap","vulnerableRanges":[">=0.6.0, <0.6.4",">=0.5.0, <0.5.14","<0.4.24"],"patched":["0.6.4","0.5.14","0.4.24"],"from":["GHSA-q2mw-fvj9-vvcw"],"provenance":"source"}],"summary":{"text":"A quadratic time complexity flaw in the Net::IMAP::ResponseReader component of the net-imap Ruby library, which implements IMAP client functionality, causes slow processing when reading large responses containing many string literals. A remote, unauthenticated attacker operating a malicious IMAP server can send specially crafted responses that exhaust the client's CPU, but only if the victim user interacts with the server, such as by connecting to it.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:13:49Z"},"euvd":{"id":"EUVD-2026-28923","exploited":false,"provenance":"source"}}