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
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2026-42258 are published in these products:
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.
- Version 0:4.0.3-35.el10_2 and below * is unaffected.
- Version 0:3.3.10-13.el10_2 and below * is unaffected.
- Version 0:3.3.10-11.el10_0.2 and below * is unaffected.
- Version 0:2.0.0.648-39.el7_9.1 and below * is unaffected.
- Version 8100020260615131019.489197e6 and below * is unaffected.
- Version 8100020260615131010.489197e6 and below * is unaffected.
- Version 8040020260630124058.522a0ee4 and below * is unaffected.
- Version 8040020260630124058.522a0ee4 and below * is unaffected.
- Version 8060020260630123825.ad008a3a and below * is unaffected.
- Version 8060020260630123825.ad008a3a and below * is unaffected.
- Version 8080020260625114827.63b34585 and below * is unaffected.
- Version 8080020260625114827.63b34585 and below * is unaffected.
- Version 0:3.0.7-167.el9_8 and below * is unaffected.
- Version 9080020260615131001.9 and below * is unaffected.
- Version 9080020260619130154.9 and below * is unaffected.
- Version 0:3.0.4-161.el9_2.3 and below * is unaffected.
- Version 0:3.0.7-162.el9_4.3 and below * is unaffected.
- Version 9040020260630065449.9 and below * is unaffected.
- Version 0:3.0.7-165.el9_6.1 and below * is unaffected.
- Version 9060020260630075016.9 and below * is unaffected.
- Version 4.0.5-35.hum1 and below * is unaffected.
- Version 3.4.10-31.hum1 and below * is unaffected.
- Version 3.3.10-23.4.hum1 and below * is unaffected.
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.