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.
Published: 2026-05-09
Score: 7.6 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability exists in Net::IMAP’s STARTTLS implementation, where a man‑in‑the‑middle attacker can induce the library to report a successful TLS upgrade without actually establishing the encryption. This causes the client to send credentials in cleartext over the network, exposing user identities and passwords to the attacker. The weakness stems from improper handling of server responses and timing validation when negotiating STARTTLS, as identified by CWEs 325, 392, 393, 636, 754, and 841.

Affected Systems

Ruby applications that rely on the Net::IMAP gem (ruby:net-imap) and have not applied version updates older than v0.3.10, v0.4.24, v0.5.14, or v0.6.4 are affected. Any system that connects to an IMAP server via STARTTLS using this gem is at risk, regardless of the operating system or hosting environment.

Risk and Exploitability

The CVSS score of 7.6 indicates a high severity for an attacker able to position themselves as a MITM, such as on an unsecured Wi‑Fi network or an untrusted corporate proxy. The EPSS score of <1% indicates a low probability of exploitation in the general population, yet the vulnerability’s nature—requiring only network‑level access to intercept the STARTTLS response—renders it comparatively easy to exploit. The issue is not listed in the CISA KEV catalog, but its impact warrants prompt remediation.

Generated by OpenCVE AI on August 14, 2026 at 03:57 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the net-imap gem to v0.3.10 or later, or to the latest release 0.6.4+
  • If an immediate upgrade cannot be performed, configure applications to use IMAPS (IMAP over TLS from the outset) on port 993 instead of STARTTLS
  • Implement a runtime check that verifies the TLS session is established before transmitting any credentials; reject connections that do not confirm encryption

Generated by OpenCVE AI on August 14, 2026 at 03:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-vcgp-9326-pqcp net-imap vulnerable to STARTTLS stripping via invalid response timing
Ubuntu USN Ubuntu USN USN-8431-1 Ruby vulnerabilities
Ubuntu USN Ubuntu USN USN-8478-1 Ruby vulnerabilities
References
Link Providers
https://access.redhat.com/errata/RHSA-2026:33462 cve-icon
https://access.redhat.com/errata/RHSA-2026:33512 cve-icon
https://access.redhat.com/errata/RHSA-2026:33514 cve-icon
https://access.redhat.com/errata/RHSA-2026:33515 cve-icon
https://access.redhat.com/errata/RHSA-2026:33540 cve-icon
https://access.redhat.com/errata/RHSA-2026:33551 cve-icon
https://access.redhat.com/errata/RHSA-2026:33552 cve-icon
https://access.redhat.com/errata/RHSA-2026:33565 cve-icon
https://access.redhat.com/errata/RHSA-2026:33576 cve-icon
https://access.redhat.com/errata/RHSA-2026:33577 cve-icon
https://access.redhat.com/errata/RHSA-2026:33630 cve-icon
https://access.redhat.com/errata/RHSA-2026:33721 cve-icon
https://access.redhat.com/errata/RHSA-2026:34076 cve-icon
https://access.redhat.com/errata/RHSA-2026:35834 cve-icon
https://access.redhat.com/errata/RHSA-2026:35866 cve-icon
https://access.redhat.com/errata/RHSA-2026:35867 cve-icon
https://access.redhat.com/errata/RHSA-2026:35895 cve-icon
https://access.redhat.com/errata/RHSA-2026:36099 cve-icon
https://access.redhat.com/errata/RHSA-2026:37238 cve-icon
https://access.redhat.com/errata/RHSA-2026:37397 cve-icon
https://access.redhat.com/security/cve/CVE-2026-42246 cve-icon
https://bugzilla.redhat.com/show_bug.cgi?id=2468499 cve-icon
https://github.com/ruby/net-imap/commit/0ede4c40b1523dfeaf95777b2678e54cc0fd9618 cve-icon cve-icon
https://github.com/ruby/net-imap/commit/24a4e770b43230286a05aa2a9746cdbb3eb8485e cve-icon cve-icon
https://github.com/ruby/net-imap/commit/97e2488fb5401a1783bddd959dde007d9fbce42c cve-icon cve-icon
https://github.com/ruby/net-imap/commit/f79d35bf5833f186e81044c57c843eda30c873da cve-icon cve-icon
https://github.com/ruby/net-imap/releases/tag/v0.3.10 cve-icon cve-icon
https://github.com/ruby/net-imap/releases/tag/v0.4.24 cve-icon cve-icon
https://github.com/ruby/net-imap/releases/tag/v0.5.14 cve-icon cve-icon
https://github.com/ruby/net-imap/security/advisories/GHSA-vcgp-9326-pqcp cve-icon cve-icon
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42246.json cve-icon
History

Mon, 18 May 2026 18:15:00 +0000

Type Values Removed Values Added
First Time appeared Ruby-lang net\
CPEs cpe:2.3:a:ruby-lang:net\:\:imap:*:*:*:*:*:ruby:*:*
Vendors & Products Ruby-lang net\
Metrics cvssV3_1

{'score': 7.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N'}


Tue, 12 May 2026 03:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Sun, 10 May 2026 20:15:00 +0000

Type Values Removed Values Added
First Time appeared Ruby-lang
Ruby-lang net::imap
Vendors & Products Ruby-lang
Ruby-lang net::imap

Sat, 09 May 2026 20:00:00 +0000

Type Values Removed Values Added
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.
Title net-imap vulnerable to STARTTLS stripping via invalid response timing
Weaknesses CWE-392
CWE-393
CWE-636
CWE-754
CWE-841
References
Metrics cvssV4_0

{'score': 7.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Ruby-lang Net::imap Net\
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-24T12:06:55.143Z

Reserved: 2026-04-25T05:37:12.118Z

Link: CVE-2026-42246

cve-icon Vulnrichment

Updated: 2026-08-24T12:06:55.143Z

cve-icon NVD

Status : Modified

Published: 2026-05-09T20:16:28.163

Modified: 2026-08-24T13:18:41.420

Link: CVE-2026-42246

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-14T04:00:12Z

Weaknesses
  • CWE-325

    Missing Cryptographic Step

  • CWE-392

    Missing Report of Error Condition

  • CWE-393

    Return of Wrong Status Code

  • CWE-636

    Not Failing Securely ('Failing Open')

  • CWE-754

    Improper Check for Unusual or Exceptional Conditions

  • CWE-841

    Improper Enforcement of Behavioral Workflow