Red Hat VEX
RHVEX-CVE-2026-42246
net-imap: ruby: Net::IMAP: Information disclosure via man-in-the-middle attack bypassing TLS
Details
A flaw was found in the Ruby net-imap library. When upgrading a cleartext IMAP connection to TLS using the Net::IMAP#starttls method, the library improperly handles certain responses received during STARTTLS negotiation. A man-in-the-middle (MITM) attacker can inject a predicted tagged OK response before the client completes the STARTTLS command, causing the operation to appear successful without establishing a TLS session. As a result, the connection may continue to transmit sensitive information in cleartext and enable modification of data exchanged over the affected connection, while the application incorrectly believes that encryption has been enabled.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:6 | ruby | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ruby-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ruby-docs | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ruby-irb | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ruby-libs | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ruby-rdoc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ruby-ri | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ruby-static | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | ruby-tcltk | All versions, no fix (out of support scope) |
References
- https://access.redhat.com/security/cve/CVE-2026-42246
- https://bugzilla.redhat.com/show_bug.cgi?id=2468499
- https://www.cve.org/CVERecord?id=CVE-2026-42246
- https://nvd.nist.gov/vuln/detail/CVE-2026-42246
- https://github.com/ruby/net-imap/commit/0ede4c40b1523dfeaf95777b2678e54cc0fd9618
- https://github.com/ruby/net-imap/commit/24a4e770b43230286a05aa2a9746cdbb3eb8485e
- https://github.com/ruby/net-imap/commit/97e2488fb5401a1783bddd959dde007d9fbce42c
- https://github.com/ruby/net-imap/commit/f79d35bf5833f186e81044c57c843eda30c873da
- https://github.com/ruby/net-imap/releases/tag/v0.3.10
- https://github.com/ruby/net-imap/releases/tag/v0.4.24
- https://github.com/ruby/net-imap/releases/tag/v0.5.14
- https://github.com/ruby/net-imap/security/advisories/GHSA-vcgp-9326-pqcp