CVE-2026-42245: ruby net-imap · Inefficient Algorithmic Complexity
Affects ruby net-imapSource CVE Database V5
Not known to be exploited · CVSS 2.3 Low · fixed in 0.6.4 : update ruby net-imap when convenient.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 35% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.6.4, 0.5.14, 0.4.24
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 9 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade net-imap to 0.6.4, 0.5.14 or 0.4.24; net-imap to 0.4.24.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| rubynet-imap | Affected
| Fixed in
|
| rubynet-imap | Affected
| Fixed in
|
| rubynet-imap | Affected
| Fixed in
|
RubyGemsnet-imappkg:gem/net-imapOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade net-imap to version 0.4.24, 0.5.14, or 0.6.4 or later, where this vulnerability has been patched. Patch status is confirmed by the version fixes noted in the advisory. No other mitigation is indicated.
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.
References
- github.com/ruby/net-imap/security/advisories/GHSA-q2mw-fvj9-vvcw (opens in a new tab)
- github.com/ruby/net-imap/commit/6091f7d6b1f3514cafbfe39c76f2b5d73de3ca96 (opens in a new tab)
- github.com/ruby/net-imap/commit/88d95231fc8afef11c1f074453f7d75b68c9dfda (opens in a new tab)
- github.com/ruby/net-imap/commit/de685f91a4a4cc75eb80da898c2bf8af08d34819 (opens in a new tab)
- github.com/ruby/net-imap/releases/tag/v0.4.24 (opens in a new tab)
- github.com/ruby/net-imap/releases/tag/v0.5.14 (opens in a new tab)
- github.com/ruby/net-imap/releases/tag/v0.6.4 (opens in a new tab)