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

- Severity: High 7.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-05-04T22:01:52.000Z
- Modified: 2026-09-10T03:50:47.706Z
- Also known as: GHSA-vcgp-9326-pqcp
- Weaknesses: CWE-325, CWE-392, CWE-393, CWE-636, CWE-754, CWE-841
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- ruby net-imap: < 0.3.10; >= 0.4.0, < 0.4.24; >= 0.5.0, < 0.5.14; >= 0.6.0, < 0.6.4
- ruby4.0: no versions given (not affected: from 0:4.0.3-35.el10_2 before *)
- ruby: no versions given (not affected: from 0:3.3.10-13.el10_2 before *; from 0:3.3.10-11.el10_0.2 before *; from 0:2.0.0.648-39.el7_9.1 before *; from 0:3.0.7-167.el9_8 before *; from 0:3.0.4-161.el9_2.3 before *; from 0:3.0.7-162.el9_4.3 before *; from 0:3.0.7-165.el9_6.1 before *)
- ruby:2.5: no versions given (not affected: from 8100020260615131019.489197e6 before *; from 8040020260630124058.522a0ee4 before *; from 8060020260630123825.ad008a3a before *; from 8080020260625114827.63b34585 before *)
- ruby:3.3: no versions given (not affected: from 8100020260615131010.489197e6 before *; from 9080020260615131001.9 before *; from 9040020260630065449.9 before *; from 9060020260630075016.9 before *)
- ruby:4.0: no versions given (not affected: from 9080020260619130154.9 before *)
- ruby4-0-main: no versions given (not affected: from 4.0.0-33.4.hum1 before *)
- ruby3-4-main: no versions given (not affected: from 3.4.10-31.hum1 before *; from 3.4.8-31.2.hum1 before *)
- ruby3-3-main: no versions given (not affected: from 3.3.10-23.2.hum1 before *)
- 3scale-amp21/system: no versions given
- 3scale-amp21/zync: no versions given
- 3scale-amp22/system: no versions given
- 3scale-amp22/zync: no versions given
- 3scale-amp2/system-rhel7: no versions given
- 3scale-amp2/system-rhel8: no versions given
- 3scale-amp2/system-rhel9: no versions given
- 3scale-amp2/zync-rhel8: no versions given
- 3scale-amp2/zync-rhel9: no versions given
- openshift/ose-rhel-coreos-9: no versions given
- net-imap (RubyGems): from 0.6.0 before 0.6.4; from 0.5.0 before 0.5.14; from 0.4.0 before 0.4.24; before 0.3.10
- ruby-lang net::imap: before 0.3.10; from 0.4.0 before 0.4.24; from 0.5.0 before 0.5.14; from 0.6.0 before 0.6.4

## Every score

- GitHub_M: CVSS:4.0 7.6 High `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`
- redhat-SADP: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/ruby/net-imap/security/advisories/GHSA-vcgp-9326-pqcp> (mitigation, vendor-advisory, web)
- <https://github.com/ruby/net-imap/commit/0ede4c40b1523dfeaf95777b2678e54cc0fd9618> (patch, web)
- <https://github.com/ruby/net-imap/commit/24a4e770b43230286a05aa2a9746cdbb3eb8485e> (patch, web)
- <https://github.com/ruby/net-imap/commit/97e2488fb5401a1783bddd959dde007d9fbce42c> (patch, web)
- <https://github.com/ruby/net-imap/commit/f79d35bf5833f186e81044c57c843eda30c873da> (patch, web)
- <https://github.com/ruby/net-imap/releases/tag/v0.3.10> (release-notes, web)
- <https://github.com/ruby/net-imap/releases/tag/v0.4.24> (release-notes, web)
- <https://github.com/ruby/net-imap/releases/tag/v0.5.14> (release-notes, web)
- <https://access.redhat.com/security/cve/CVE-2026-42246> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2468499> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42246.json>
- <https://access.redhat.com/errata/RHSA-2026:37397> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:35895> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:33565> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:33540> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:33514> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:33515> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:35866> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:35867> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:34076> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:35834> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:33630> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:36099> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:33462> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:37238> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:33512> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:33576> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:33577> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:33721> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:33552> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:33551> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42246> (advisory)
- <https://github.com/ruby/net-imap> (package)
- <https://github.com/ruby/net-imap/releases/tag/v0.6.4> (web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/net-imap/CVE-2026-42246.yml> (web)
- <https://nostarttls.secvuln.info> (web)
- <https://www.rfc-editor.org/info/rfc8314> (web)

## Sources

- CVE List: [CVE-2026-42246](https://www.cve.org/CVERecord?id=CVE-2026-42246), CVE Terms of Use, modified 2026-08-24
- GitHub Advisory Database: [GHSA-vcgp-9326-pqcp](https://github.com/advisories/GHSA-vcgp-9326-pqcp), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-42246](https://nvd.nist.gov/vuln/detail/CVE-2026-42246), Public domain, modified 2026-08-24

---

Page: https://cve.day/CVE-2026-42246 · Whole record: https://cve.day/CVE-2026-42246.json · Rebuilt by cve.day 2026-11-25T22:59:21.148Z
