CVE-2026-42257
9.8 CRITICALNet::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby
Published: 2026-05-09 · Last updated: 2026-05-18
Severity and scoring
- CVSS
- 9.8 CRITICAL
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CWE
- CWE-77, CWE-93
Affected products
| Vendor | Product |
|---|---|
| ruby-lang | net\ |
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.
Source: NVD
References
- [NVD]https://nvd.nist.gov/vuln/detail/CVE-2026-42257
- [Other]https://github.com/ruby/net-imap/releases/tag/v0.4.24
- [Other]https://github.com/ruby/net-imap/releases/tag/v0.5.14
- [Other]https://github.com/ruby/net-imap/releases/tag/v0.6.4
- [Vendor advisory]https://github.com/ruby/net-imap/security/advisories/GHSA-hm49-wcqc-g2xg
Related CVEs
Same vendor
- CVE-2026-46727 — An issue was discovered in Ruby 4 before 4.0.5 (8.1 HIGH)
- CVE-2026-42258 — Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby (9.8 CRITICAL)
- CVE-2026-42256 — Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby (6.5 MEDIUM)
- CVE-2026-42246 — Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby (7.4 HIGH)
- CVE-2026-42245 — Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby (7.5 HIGH)
Same CWE
- CVE-2026-46529 — Atril Document Viewer is the default document reader of the MATE desktop environment for Linux
- CVE-2026-50639 — Metrics::Any::Adapter::SignalFx versions before 0.04 for Perl does not protect against metric injections (6.5 MEDIUM)
- CVE-2026-50638 — Metrics::Any::Adapter::DogStatsd versions before 0.04 for Perl does not protect against metric injections
- CVE-2026-50637 — Metrics::Any::Adapter::Statsd versions before 0.04 for Perl does not protect against metric injections
- CVE-2026-45558 — Roxy-WI is a web interface for managing Haproxy, Nginx, Apache and Keepalived servers (9.9 CRITICAL)