CVE-2026-42246
net-imap vulnerable to STARTTLS stripping via invalid response timing
Reported by github_m · Published May 9, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| rubygem-power_assert | errata.rockylinux.org | 3.0.1-33.module, 2.0.3-13.el10, 2.0.3-7.module, 1.2.1-167.el9 |
| rubygem-rss | errata.rockylinux.org | 0.3.1-13.el10 |
| rubygem-openssl | errata.rockylinux.org | 2.1.2-115.module |
| ruby-bundled-gems | errata.rockylinux.org | 4.0.3-33.module, 3.3.10-7.module |
| kube-fluentd-operator | Chainguard | 1.18.2-r63 |
| rubygem-rexml | errata.rockylinux.org | 3.4.4-33.module, 3.4.4-13.el10, 3.4.4-7.module, 3.2.5-167.el9 |
| rubygem-irb | errata.rockylinux.org | 1.16.0-33.module, 1.13.1-13.el10, 1.13.1-7.module, 1.3.5-167.el9 |
| ruby3.4-rubygems | Amazon Linux | 3.6.9-27.amzn2023.0.6 |
| rubygem-psych-debuginfo | errata.rockylinux.org | 5.3.1-33.module, 5.1.2-13.el10, 5.1.2-7.module, 3.3.2-167.el9, 3.0.2-115.module |
| rubygem-bigdecimal-debuginfo | errata.rockylinux.org | 4.0.1-33.module, 3.1.5-13.el10, 3.1.5-7.module, 3.0.0-167.el9 |
| rubygem-rdoc | errata.rockylinux.org | 7.0.3-33.module, 6.6.3.1-13.el10, 6.6.3.1-7.module, 6.3.4.1-167.el9 |
| rubygem-racc | errata.rockylinux.org | 1.7.3-7.module |
51 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| ruby | net-imap | < 0.3.10, >= 0.4.0, < 0.4.24, >= 0.5.0, < 0.5.14 |
| chainguard | kube-fluentd-operator | 0 |
| Red Hat | Red Hat CodeReady Linux Builder EUS (v.9.6) | |
| amazon:2023 | ruby3.4-rubygems | 0 |
| Red Hat | Red Hat Enterprise Linux Server (v. 7 ELS) | |
| wolfi | ruby3.4-rails-8.0 | 0 |
| Red Hat | Red Hat Hardened Images | 3.3.10-23.2.hum1 |
| Red Hat | Red Hat Enterprise Linux AppStream AUS (v.8.6) | |
| Red Hat | Red Hat Enterprise Linux 7 | |
| amazon:2023 | ruby3.4-rubygem-bigdecimal | 0 |
| wolfi | ruby3.4-net-imap | 0 |
| amazon:2023 | ruby4.0-bundled-gems | 0 |
| amazon:2023 | ruby4.0-rubygem-rexml | 0 |
| amazon:2023 | ruby3.4-rubygem-json | 0 |
| chainguard | ruby3.3-rails-7.2 | 0 |
| chainguard | gitlab-rails-ce-18.6 | 0 |
| chainguard | logstash-9.3 | 0 |
| Red Hat | Red Hat 3scale API Management Platform 2 | |
| Red Hat | Red Hat Enterprise Linux 9 | 0:3.0.7-167.el9_8 |
| amazon:2 | ruby-devel | 0 |
…and 164 more
Timeline
- May 4, 2026 CVE Published
- May 10, 2026 Security Advisory (24 in total, the first dated here)
- May 14, 2026 CVE Updated
- May 18, 2026 EPSS Score (30 in total, the first dated here)
- Jun 30, 2026 Distribution Patch (30 in total, the first dated here)
- Aug 4, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-42246
vulnetix vdb fixes CVE-2026-42246
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-42246/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/ruby/net-imap/security/advisories/GHSA-vcgp-9326-pqcp x_refsource_CONFIRM
- https://github.com/ruby/net-imap/commit/0ede4c40b1523dfeaf95777b2678e54cc0fd9618 x_refsource_MISC
- https://github.com/ruby/net-imap/commit/24a4e770b43230286a05aa2a9746cdbb3eb8485e x_refsource_MISC
- https://github.com/ruby/net-imap/commit/97e2488fb5401a1783bddd959dde007d9fbce42c x_refsource_MISC
- https://github.com/ruby/net-imap/commit/f79d35bf5833f186e81044c57c843eda30c873da x_refsource_MISC
- https://github.com/ruby/net-imap/releases/tag/v0.3.10 x_refsource_MISC
- https://github.com/ruby/net-imap/releases/tag/v0.4.24 x_refsource_MISC
- https://github.com/ruby/net-imap/releases/tag/v0.5.14 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-42246 advisory
- https://github.com/advisories/GHSA-vcgp-9326-pqcp advisory
- https://github.com/ruby/net-imap/releases/tag/v0.6.4 url
- https://nostarttls.secvuln.info url
- https://www.rfc-editor.org/info/rfc8314 url
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/net-imap/CVE-2026-42246.yml advisory
- https://access.redhat.com/security/cve/CVE-2026-42246 vdb
- RHBZ#2468499 issue
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42246.json url
- 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
…and 18 more