CVE-2026-42258: 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.
Security readout for executives and security teams
Plain-English summary
Affected Ruby applications may let attacker-influenced Symbol values inject unintended IMAP commands. Successful exploitation could alter mailbox or server-side IMAP state, with limited information exposure also possible. Risk depends on whether untrusted data reaches net-imap command arguments; merely installing the package does not establish exploitability.
Executive priority
Prioritize remediation for externally reachable or automated mail-processing systems where untrusted input can influence IMAP operations. Patch those systems promptly because integrity impact is rated high. Other installations should remain scheduled for upgrade, but validate reachability and data flow before treating every net-imap deployment as directly exploitable.
Technical view
CVE-2026-42258 is a CRLF and IMAP command-injection flaw in Ruby net-imap Symbol argument handling. It affects versions before 0.4.24, 0.5.14, and 0.6.4 in their respective release lines. The supplied CVSS 3.1 score is 7.1: network-reachable, low complexity, no privileges, user interaction required, with high integrity impact.
Likely exposure
Exposure requires an affected net-imap version and an application path that converts or accepts attacker-influenced values as Symbols passed into IMAP commands. Prioritize internet-facing mail workflows, automated mailbox processors, and services accepting external message or request data. The bundle identifies no CPEs, so asset discovery should use dependency inventories and lockfiles.
Exploitation context
The bundle does not report active exploitation, and the CVE is not listed as KEV. The CVSS vector indicates user interaction is required, but the supplied evidence does not define that interaction or identify specific vulnerable application flows. Treat exploitability as application-dependent until data flow into net-imap Symbol arguments is confirmed.
Researcher notes
The reported weakness maps to CWE-77 and CWE-93. The source bundle establishes vulnerable version ranges and fixed releases, but does not enumerate affected methods, required application transformations, observed attacks, or public proof-of-concept activity. Researchers should distinguish dependency presence from a reachable Symbol-input path and avoid inferring operating-system command execution from IMAP command injection.
Mitigation direction
Upgrade net-imap 0.4.x to 0.4.24 or later.
Upgrade net-imap 0.5.x to 0.5.14 or later.
Upgrade net-imap 0.6.x to 0.6.4 or later.
Apply applicable Red Hat security updates for vendor-managed packages.
Prevent untrusted values from becoming Symbols used as IMAP command arguments.
Validation and detection
Inventory deployed net-imap versions using dependency manifests, lockfiles, and runtime package data.
Confirm every deployed version meets its release line's patched minimum.
Review IMAP call paths for externally influenced values converted to Symbols.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-77: Command execution behavior lookup
Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-77 · source CWE mapping
Improper Neutralization of Special Elements used in a Command ('Command Injection')
Improper Neutralization of Special Elements used in a Command ('Command Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Improper Neutralization of CRLF Sequences ('CRLF Injection')
Improper Neutralization of CRLF Sequences ('CRLF Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.