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
CVE-2026-42258 affects Ruby’s net-imap library. Vulnerable versions can mishandle Symbol values passed into IMAP commands, allowing injected line breaks to alter the IMAP command stream. Business risk is highest for Ruby applications that let external input influence IMAP command arguments.
Executive priority
Treat this as a high-priority dependency remediation for Ruby services that interact with IMAP. Patch quickly where exposure is confirmed, but avoid assuming compromise without separate evidence of exploitation.
Technical view
The issue is CRLF injection and IMAP command injection in net-imap Symbol arguments. Affected ranges are <0.4.24, >=0.5.0 <0.5.14, and >=0.6.0 <0.6.4. CVSS 3.1 is 7.1 with network attack vector, low complexity, no privileges, and user interaction required.
Likely exposure
Exposure is likely limited to Ruby applications or packaged software using affected net-imap versions and passing attacker-influenced values as Symbols to IMAP commands. Systems not using net-imap, or only using patched versions, are not indicated as affected by the provided sources.
Exploitation context
The provided bundle does not show KEV listing or confirmed active exploitation. Exploitation requires a reachable application path where user-controlled or attacker-influenced data becomes a Symbol argument to net-imap commands.
Researcher notes
Focus validation on data-flow from request, mailbox, configuration, or job input into net-imap command Symbol arguments. The sources identify fixed versions but do not provide exploit telemetry, affected downstream applications, or broader mitigation beyond upgrading and vendor advisories.
Mitigation direction
Upgrade net-imap to 0.4.24, 0.5.14, 0.6.4, or later applicable versions.
Apply relevant Red Hat advisories where net-imap is supplied by Red Hat packages.
Audit code for attacker-influenced Symbol arguments passed to IMAP commands.
Check vendor guidance for distribution-specific package names and backported fixes.
Prioritize internet-facing mail workflows and administrative automation using net-imap.
Validation and detection
Inventory Ruby dependencies for net-imap and compare versions with affected ranges.
Review Gemfile.lock, package manifests, and vendor package advisories for patched builds.
Trace IMAP command call sites for Symbol arguments derived from external input.
Confirm deployments run patched application images or operating-system packages.
Run regression tests covering IMAP workflows after dependency or package updates.
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.