Vulnerabilities

CVE-2026-42257

Critical 9.8 CVSS 3.1

Description

Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.4.24, 0.5.14, and 0.6.4, several Net::IMAP commands accept a raw string argument that is sent to the server without validation or escaping. If this string is derived from user-controlled input, it may contain contain CRLF sequences, which an attacker can use to inject arbitrary IMAP commands. This issue has been patched in versions 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-07-24
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.4 % higher than 35 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
net-imap (RubyGems) < 0.4.24 Affected
net-imap (RubyGems) ≥ 0.5.0, < 0.5.14 Affected
net-imap (RubyGems) ≥ 0.6.0, < 0.6.4 Affected
Ruby-lang Net::imap < 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

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