{"id":"CVE-2026-42246","published":"2026-05-09T19:33:17Z","modified":"2026-08-24T12:06:55Z","title":"net-imap vulnerable to STARTTLS stripping via invalid response timing","vendor":"ruby","product":"net-imap","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00396,"percentile":0.25394,"provenance":"source"},"cwes":[{"id":"CWE-392","name":"Missing Report of Error Condition"},{"id":"CWE-393","name":"Return of Wrong Status Code"},{"id":"CWE-754","name":"Improper Check for Unusual or Exceptional Conditions"},{"id":"CWE-636","name":"Not Failing Securely"},{"id":"CWE-841","name":"Improper Enforcement of Behavioral Workflow"},{"id":"CWE-325","name":"Missing Cryptographic Step"}],"references":[{"url":"https://github.com/ruby/net-imap/security/advisories/GHSA-vcgp-9326-pqcp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ruby/net-imap/commit/0ede4c40b1523dfeaf95777b2678e54cc0fd9618","tags":["x_refsource_MISC"]},{"url":"https://github.com/ruby/net-imap/commit/24a4e770b43230286a05aa2a9746cdbb3eb8485e","tags":["x_refsource_MISC"]},{"url":"https://github.com/ruby/net-imap/commit/97e2488fb5401a1783bddd959dde007d9fbce42c","tags":["x_refsource_MISC"]},{"url":"https://github.com/ruby/net-imap/commit/f79d35bf5833f186e81044c57c843eda30c873da","tags":["x_refsource_MISC"]},{"url":"https://github.com/ruby/net-imap/releases/tag/v0.3.10","tags":["x_refsource_MISC"]},{"url":"https://github.com/ruby/net-imap/releases/tag/v0.4.24","tags":["x_refsource_MISC"]},{"url":"https://github.com/ruby/net-imap/releases/tag/v0.5.14","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-42246","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2468499","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42246.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:37397","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:35895","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:33565","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:33540","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:33514","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:33515","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:35866","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:35867","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:34076","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:35834","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:33630","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:36099","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:33462","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:37238","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:33512","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:33576","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:33577","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:33721","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:33552","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:33551","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":10.4,"factors":[{"name":"EPSS percentile","points":5.08},{"name":"CVSS severity","points":5.32}]},"vendorSlug":"ruby","affectedVersions":[{"vendor":"ruby","product":"net-imap","versions":["< 0.3.10",">= 0.4.0, < 0.4.24",">= 0.5.0, < 0.5.14",">= 0.6.0, < 0.6.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-05-12T02:29:05.120225Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"net-imap","vulnerableRanges":[">=0.6.0, <0.6.4",">=0.5.0, <0.5.14",">=0.4.0, <0.4.24","<0.3.10"],"patched":["0.6.4","0.5.14","0.4.24","0.3.10"],"from":["GHSA-vcgp-9326-pqcp"],"provenance":"source"}],"summary":{"text":"The net-imap library for Ruby contains a flaw in Net::IMAP#starttls, which is the client routine that upgrades an IMAP connection to TLS. The method can report that TLS was started successfully when it was not, so the connection stays unencrypted. An attacker positioned as a man-in-the-middle on the network path can exploit this, and user interaction is required on the victim's side. Successful exploitation exposes confidential data and allows the integrity of the connection to be compromised.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:00:31Z"},"euvd":{"id":"EUVD-2026-28924","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-25186","published":"2025-02-10","fixed":"0.5.6","kev":false},{"cve":"CVE-2025-43857","published":"2025-04-28","fixed":"0.5.7","kev":false,"link":{"from":"CVE-2025-43857","to":"CVE-2026-42246","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:net-imap","fromFixed":"0.3.9","toFixed":"0.3.10","daysApart":376}]}},{"cve":"CVE-2026-42245","published":"2026-05-09","fixed":"0.6.4","kev":false},{"cve":"CVE-2026-42246","published":"2026-05-09","fixed":"0.6.4","kev":false},{"cve":"CVE-2026-42256","published":"2026-05-09","fixed":"0.6.4","kev":false},{"cve":"CVE-2026-42257","published":"2026-05-09","fixed":"0.6.4","kev":false},{"cve":"CVE-2026-42258","published":"2026-05-09","fixed":"0.6.4","kev":false}],"package":"RubyGems:net-imap"}}