Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. net-imap
  4. ›
  5. CVE-2026-42246

CVE-2026-42246: net-imap vulnerable to STARTTLS stripping via invalid response timing

May 4, 2026

A man-in-the-middle attacker can cause Net::IMAP#starttls to return “successfully”, without starting TLS.

References

  • github.com/advisories/GHSA-vcgp-9326-pqcp
  • github.com/ruby/net-imap
  • github.com/ruby/net-imap/commit/0ede4c40b1523dfeaf95777b2678e54cc0fd9618
  • github.com/ruby/net-imap/commit/24a4e770b43230286a05aa2a9746cdbb3eb8485e
  • github.com/ruby/net-imap/commit/97e2488fb5401a1783bddd959dde007d9fbce42c
  • github.com/ruby/net-imap/commit/f79d35bf5833f186e81044c57c843eda30c873da
  • github.com/ruby/net-imap/releases/tag/v0.3.10
  • github.com/ruby/net-imap/releases/tag/v0.4.24
  • github.com/ruby/net-imap/releases/tag/v0.5.14
  • github.com/ruby/net-imap/releases/tag/v0.6.4
  • github.com/ruby/net-imap/security/advisories/GHSA-vcgp-9326-pqcp
  • nostarttls.secvuln.info/
  • nvd.nist.gov/vuln/detail/CVE-2026-42246
  • www.rfc-editor.org/info/rfc8314

Code Behaviors & Features

Detect and mitigate CVE-2026-42246 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.3.10, all versions starting from 0.4.0 before 0.4.24, all versions starting from 0.5.0 before 0.5.14, all versions starting from 0.6.0 before 0.6.4

Fixed versions

  • 0.6.4
  • 0.5.14
  • 0.4.24
  • 0.3.10

Solution

Upgrade to versions 0.3.10, 0.4.24, 0.5.14, 0.6.4 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • 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

Source file

gem/net-imap/CVE-2026-42246.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:49 +0000.