CVE-2026-42246Published May 9, 2026 · May 9Updated 4d ago
net-imap vulnerable to STARTTLS stripping via invalid response timing
ruby net-imap
High7.6Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| net-imap RubyGems |
|
|
ruby net-imap
| Product | Affected | Fixed in |
|---|---|---|
| net-imap RubyGems |
|
|
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.
From the CVE record · GitHub_M
The ruby net-imap package can report that Net::IMAP#starttls succeeded without starting TLS. A man-in-the-middle attacker can cause this behavior; the input does not specify an authentication or user-interaction requirement.
Check applications using RubyGems net-imap versions below 0.3.10, 0.4.0–0.4.23, 0.5.0–0.5.13, or 0.6.0–0.6.3.