CVE-2026-42246 Details
Description
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.
A vulnerability in the Net::IMAP library in Ruby allows a man-in-the-middle attacker to intercept and manipulate the STARTTLS command. This issue is present in versions 0.6.0 through 0.6.3, 0.5.0 through 0.5.13, 0.4.0 through 0.4.23, and 0.3.0 through 0.3.9. The vulnerability arises because the attacker can inject a false 'OK' response, tricking the client into believing that a secure TLS connection has been established when it has not. As a result, data can be transmitted in cleartext, exposing sensitive information.
Upgrade to Net::IMAP versions 0.6.4, 0.5.14, 0.4.24, or 0.3.10, all of which include the necessary fix. After upgrading, verify that the TLS connection is active before transmitting sensitive data.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-325 | Missing Cryptographic Step | redhat-SADP |
| CWE-392 | Missing Report of Error Condition | [email protected] |
| CWE-393 | Return of Wrong Status Code | [email protected] |
| CWE-636 | Not Failing Securely ('Failing Open') | [email protected] |
| CWE-754 | Improper Check for Unusual or Exceptional Conditions | [email protected] |
| CWE-841 | Improper Enforcement of Behavioral Workflow | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| ruby-lang net::imap | < 0.3.10 >= 0.4.0, < 0.4.24 >= 0.5.0, < 0.5.14 >= 0.6.0, < 0.6.4 |
CPE
Remediation
| |
Change History
15 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 24, 2026 | CVE Modified | redhat-SADP |
| Aug 5, 2026 | CVE Modified | redhat-SADP |
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jul 10, 2026 | CVE Modified | redhat-SADP |
| Jul 7, 2026 | CVE Modified | redhat-SADP |
| Jul 6, 2026 | CVE Modified | redhat-SADP |
| Jul 2, 2026 | CVE Modified | redhat-SADP |
| Jul 1, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| May 18, 2026 | Initial Analysis | [email protected] |
| May 9, 2026 | New CVE Received | [email protected] |