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.
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
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

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'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-05T12:14:46.068Z

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

Link: CVE-2026-42246

cve-icon Vulnrichment

Updated: 2026-08-05T12:14:46.068Z

cve-icon NVD

Status : Modified

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

Modified: 2026-08-05T13:22:23.220

Link: CVE-2026-42246

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-10T20:00:05Z