Ruby net-imap
net-imap: Quadratic complexity when reading response literals
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by NVD · CWE-407
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
ruby net-imap
- < 0.4.24
- >= 0.5.0, < 0.5.14
- >= 0.6.0, < 0.6.4
Fixed in 0.4.24, 0.5.14, 0.6.4
Mitigation
Upgrade net-imap to 0.4.24 or 0.5.14 or 0.6.4 or later.
References
- Vendor advisory github.com/ruby/net-imap/security/advisories/G…
- Patch github.com/ruby/net-imap/commit/6091f7d6b1f351…
- Patch github.com/ruby/net-imap/commit/88d95231fc8afe…
4 more
- Patch github.com/ruby/net-imap/commit/de685f91a4a4cc…
- Release notes github.com/ruby/net-imap/releases/tag/v0.4.24
- Release notes github.com/ruby/net-imap/releases/tag/v0.5.14
- Release notes github.com/ruby/net-imap/releases/tag/v0.6.4
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.