Vulnerabilities

CVE-2026-42246

High 7.4 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2026-05-09
Last modified
2026-08-24
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.3 % higher than 24 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
Ruby-lang Net::imap < 0.3.10 Affected
Ruby-lang Net::imap ≥ 0.4.0, < 0.4.24 Affected
Ruby-lang Net::imap ≥ 0.5.0, < 0.5.14 Affected
Ruby-lang Net::imap ≥ 0.6.0, < 0.6.4 Affected

Weakness type

  • CWE-325: Missing Cryptographic Step

    The product does not implement a required step in a cryptographic algorithm, resulting in weaker encryption than advertised by the algorithm.

  • CWE-392: Missing Report of Error Condition

    The product encounters an error but does not provide a status code or return value to indicate that an error has occurred.

  • CWE-393: Return of Wrong Status Code

    A function or operation returns an incorrect return value or status code that does not indicate the true result of execution, causing the product to modify its behavior based on the incorrect result.

  • CWE-636: Not Failing Securely

    When the product encounters an error condition or failure, its design requires it to fall back to a state that is less secure than other options that are available, such as selecting the weakest encryption algorithm or …

  • CWE-754: Improper Check for Unusual or Exceptional Conditions

    The product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product.

  • CWE-841: Improper Enforcement of Behavioral Workflow

    The product supports a session in which more than one behavior must be performed by an actor, but it does not properly ensure that the actor performs the behaviors in the required sequence or timeframe.

Attack techniques

Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.

  • T1553.002: Code Signing defense-impairment

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities