Ruby net-imap
net-imap vulnerable to STARTTLS stripping via invalid response timing
Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.3.10, 0.4.24, 0.5.14, and 0.6.4, a man-in-the-middle attacker can cause Net::IMAP#starttls to return "successfully", without starting TLS. This issue has been patched in versions 0.3.10, 0.4.24, 0.5.14, and 0.6.4.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.6high · scored by CNA · CWE-392
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
ruby net-imap
- < 0.3.10
- >= 0.4.0, < 0.4.24
- >= 0.5.0, < 0.5.14
- >= 0.6.0, < 0.6.4
Fixed in 0.3.10, 0.4.24, 0.5.14, 0.6.4
Mitigation
Upgrade net-imap to 0.3.10 or 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/0ede4c40b1523d…
- Patch github.com/ruby/net-imap/commit/24a4e770b43230…
5 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.