CVE-2026-42257: Vulnerability in Ruby-lang net\

Critical. 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...

RubyGems, CWE-77, CWE-93

Exploitation
None confirmed
Severity
9.8 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-hm49-wcqc-g2xg
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-77, CWE-93
Published
4 May 2026
Last change
24 Jul 2026
Ecosystem
RubyGems

Affected products

Affected versions and the first fixed release

  • Ruby-lang net\ Before 0.4.24; From 0.5.0 before 0.5.14; From 0.6.0 before 0.6.4. Fixed in 0.4.24, 0.5.14, 0.6.4

Affected packages

Vulnerable version ranges and fixed releases

  • net-imap RubyGems, Affected from 0.6.0 through 0.6.3. Fixed in 0.6.4

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related