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
- github.com/ruby/net-imap/commit/0ec4fd351263e8b9a4f683713427827b7b1ad974
- github.com/ruby/net-imap/commit/47c72186d272441878ca73c9499f66013829ca2f
- github.com/ruby/net-imap/commit/6bf02aef7e0b5931010c36e377f79a71636b306b
- github.com/ruby/net-imap/commit/a4f7649c3da77dec7631f03a037a478eb4330048
Related
- net\ vulnerabilities Recent advisories, watch this product