CRLF Injection CVE-2026-42258 in Ruby Net::IMAP <0.6.4 via Symbol args
CVE-2026-42258 Published on May 9, 2026
net-imap: Command Injection via unvalidated Symbol inputs
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, symbol arguments to commands are vulnerable to a CRLF Injection / IMAP Command injection via Symbol arguments passed to IMAP commands. This issue has been patched in versions 0.4.24, 0.5.14, and 0.6.4.
Vulnerability Analysis
CVE-2026-42258 is exploitable with network access, requires user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have a small impact on confidentiality, a high impact on integrity, and no impact on availability.
Weakness Types
What is a Command Injection Vulnerability?
The software constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
CVE-2026-42258 has been classified to as a Command Injection vulnerability or weakness.
What is a CRLF Injection Vulnerability?
The software uses CRLF (carriage return line feeds) as a special element, e.g. to separate lines or records, but it does not neutralize or incorrectly neutralizes CRLF sequences from inputs.
CVE-2026-42258 has been classified to as a CRLF Injection vulnerability or weakness.
Products Associated with CVE-2026-42258
Want to know whenever a new CVE is published for Red Hat products? stack.watch will email you.
Affected Versions
ruby net-imap:- Version < 0.4.24 is affected.
- Version >= 0.5.0, < 0.5.14 is affected.
- Version >= 0.6.0, < 0.6.4 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.