cve.bz

CVE-2026-42246 ruby-lang net\: Missing Report of Error Condition

7.6 highEPSS 0.3%Fix available

High (7.6) in ruby-lang net\. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in net-imap 0.3.10, 0.4.24, 0.5.14.

On this page
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.

Severity

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

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
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 25th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-05-12. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
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
CWE-325 Missing Cryptographic Step
OWASP Top 10
A04:2025 Cryptographic Failures, A06:2025 Insecure Design, A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-42246 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42246?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42246?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-42246 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

  • ruby-lang:net\

Versions

From the NVD's CPE matches.

ProductAffected
ruby-lang:net\before 0.3.10
ruby-lang:net\from 0.4.0 before 0.4.24
ruby-lang:net\from 0.5.0 before 0.5.14
ruby-lang:net\from 0.6.0 before 0.6.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-vcgp-9326-pqcpRubyGemsnet-imap>=0.6.0 <0.6.40.6.4
GHSA-vcgp-9326-pqcpRubyGemsnet-imap>=0.5.0 <0.5.140.5.14
GHSA-vcgp-9326-pqcpRubyGemsnet-imap>=0.4.0 <0.4.240.4.24
GHSA-vcgp-9326-pqcpRubyGemsnet-imap<0.3.100.3.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12ruby3.1no fix listedDEBIAN-CVE-2026-42246
Debian13ruby3.33.3.13-0+deb13u1DEBIAN-CVE-2026-42246 DSA-6614-1
Debian14ruby3.3no fix listedDEBIAN-CVE-2026-42246
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 4 morejrubyno fix listedUBUNTU-CVE-2026-42246
Ubuntu22.04:LTSruby3.03.0.2-7ubuntu2.13UBUNTU-CVE-2026-42246
Ubuntu24.04:LTSruby3.23.2.3-1ubuntu0.24.04.8UBUNTU-CVE-2026-42246
Ubuntu25.10jruby, ruby3.3no fix listedUBUNTU-CVE-2026-42246
Ubuntu26.04:LTSruby3.33.3.8-2ubuntu3.1UBUNTU-CVE-2026-42246
UbuntuPro:16.04:LTSruby2.32.3.1-2~ubuntu16.04.16+esm14UBUNTU-CVE-2026-42246
UbuntuPro:18.04:LTSruby2.52.5.1-1ubuntu1.16+esm8UBUNTU-CVE-2026-42246
UbuntuPro:20.04:LTSruby2.72.7.0-5ubuntu1.18+esm5UBUNTU-CVE-2026-42246
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-irb and 5 more0:2.5.9-115.module+el8.10.0+24408+7ffaaa88RHSA-2026:33514
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 7 more0:3.3.10-7.module+el8.10.0+24407+4a33a056RHSA-2026:33515
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.3.0-4.module+el8.10.0+22021+135c76a8RHSA-2026:33514
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.10.0+21226+b78a28c4RHSA-2026:33515
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:1.3.4-115.module+el8.10.0+24408+7ffaaa88RHSA-2026:33514
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.1.5-7.module+el8.10.0+24407+4a33a056RHSA-2026:33515
Red Hatenterprise_linux:8::appstreamrubygem-bson, rubygem-bson-doc, rubygem-bson-debuginfo and 1 more0:4.3.0-2.module+el8.9.0+19193+435404aeRHSA-2026:33514
Red Hatenterprise_linux:8::appstreamrubygem-bundler0:2.5.22-7.module+el8.10.0+24407+4a33a056RHSA-2026:33515
Red Hatenterprise_linux:8::appstreamrubygem-bundler, rubygem-bundler-doc0:1.16.1-5.module+el8.10.0+23088+750dc6caRHSA-2026:33514
Red Hatenterprise_linux:8::appstreamrubygem-did_you_mean0:1.2.0-115.module+el8.10.0+24408+7ffaaa88RHSA-2026:33514
Red Hatenterprise_linux:8::appstreamrubygem-io-console, rubygem-io-console-debuginfo0:0.4.6-115.module+el8.10.0+24408+7ffaaa88RHSA-2026:33514
Red Hatenterprise_linux:8::appstreamrubygem-io-console, rubygem-io-console-debuginfo0:0.7.1-7.module+el8.10.0+24407+4a33a056RHSA-2026:33515
277 more for Red Hat in the JSON and on Red Hat's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability affects the STARTTLS functionality in the Ruby net-imap library. Red Hat Product Security has assessed this issue as an Important severity vulnerability.

Attack Complexity is considered High (AC:H), because successful exploitation requires an attacker capable of intercepting and modifying network traffic and successfully winning a timing race during the STARTTLS negotiation process.

This may allow exposure of authentication credentials, email contents, and other sensitive information, as well as unauthorized modification of data transmitted over the affected connection.

```

Red Hat's ruby packages distribute net-imap as a default bundled gem, the ruby package itself is listed affected. Applications relying on the system-provided Ruby installation to handle IMAP connections may be exposed to this flaw.

Red Hat 3scale API Management uses net-imap which is a transitive dependency of mail, which is a dependency of actionmailer and actionmailbox. The images doesn’t load them or use them in any way, hence, they are not affected.

```

Red Hat's mitigation

As a temporary workaround, Users are strongly encouraged to switch from explicit TLS upgrading mechanisms (STARTTLS on port 143) to Implicit TLS connections (such as IMAPS on port 993).

By enforcing implicit TLS via port 993 from the initial socket creation step, the connection is mathematically protected against packet injection and connection degradation tactics entirely, bypassing the vulnerable implementation path.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10ruby4.0-0:4.0.3-35.el10_2Fixed 2026-06-30RHSA-2026:33540
Red Hat Enterprise Linux 10ruby-0:3.3.10-13.el10_2Fixed 2026-06-30RHSA-2026:33565
Red Hat Enterprise Linux 10.0 Extended Update Supportruby-0:3.3.10-11.el10_0.2Fixed 2026-07-06RHSA-2026:35895
Red Hat Enterprise Linux 7 Extended Lifecycle Supportruby-0:2.0.0.648-39.el7_9.1Fixed 2026-07-09RHSA-2026:37397
Red Hat Enterprise Linux 8ruby:2.5-8100020260615131019.489197e6Fixed 2026-06-30RHSA-2026:33514
Red Hat Enterprise Linux 8ruby:3.3-8100020260615131010.489197e6Fixed 2026-06-30RHSA-2026:33515
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportruby:2.5-8040020260630124058.522a0ee4Fixed 2026-07-06RHSA-2026:35866
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onruby:2.5-8040020260630124058.522a0ee4Fixed 2026-07-06RHSA-2026:35866
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportruby:2.5-8060020260630123825.ad008a3aFixed 2026-07-06RHSA-2026:35867
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onruby:2.5-8060020260630123825.ad008a3aFixed 2026-07-06RHSA-2026:35867
Red Hat 3scale API Management Platform 23scale-amp21/systemNot affected
Red Hat 3scale API Management Platform 23scale-amp21/zyncNot affected
Red Hat 3scale API Management Platform 23scale-amp22/systemNot affected
Red Hat 3scale API Management Platform 23scale-amp22/zyncNot affected
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel7Not affected
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel8Not affected
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel9Not affected
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel8Not affected
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel9Not affected
Red Hat Enterprise Linux 6rubyOut of support scope
15 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-42246.

Attack patterns (CAPEC)

  • CAPEC-68 Subvert Code-signing Facilities Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON