ADVISORIES

Red Hat VEX

RHVEX-CVE-2026-42246

net-imap: ruby: Net::IMAP: Information disclosure via man-in-the-middle attack bypassing TLS

Important No fix available CVE-2026-42246

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

EcosystemPackageAffected versions
Red Hat:enterprise_linux:6ruby
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:6ruby-devel
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:6ruby-docs
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:6ruby-irb
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:6ruby-libs
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:6ruby-rdoc
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:6ruby-ri
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:6ruby-static
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:6ruby-tcltk
All versions, no fix (out of support scope)

References