CVE-2026-47241

Net::IMAP: Denial of Service via incomplete raw argument validation

Published Jun 22, 2026 CVSS 4.0 · 2.1 Low EPSS < 1% KEV · Not listed
Description
Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to 0.6.5 and 0.5.15, several Net::IMAP commands accept a raw string argument which is only validated to prevent CRLF injection and then sent verbatim. If this string is derived from user-controlled input, an attacker can force the next command to be absorbed as a continuation of the first command. This will cause the first command to eventually fail, but also prevents it from returning until another command is sent (from another thread). That other command will not return until the connection is closed. This vulnerability is fixed in 0.6.5 and 0.5.15.

Analysis

AI-generated

Technical impact

The Net::IMAP library accepts raw string arguments in several IMAP commands and only validates them to prevent CRLF injection. If an attacker supplies a user‑controlled raw string, the next IMAP command may be interpreted as a continuation of the first command. This causes the original command to eventually fail and prevents it from returning until another command is sent from another thread. That other command will not return until the connection is closed, resulting in a denial‑of‑service condition for the client application.

Affected Systems

The issue affects the Ruby Net::IMAP client. Versions prior to 0.6.5 for the 0.6 branch and prior to 0.5.15 for the 0.5 branch are vulnerable. Upgrading to 0.6.5 or 0.5.15, respectively, resolves the vulnerability.

Risk and Exploitability

The CVSS score of 2.1 indicates a low severity impact, while the EPSS score of < 1% means that the exploitation probability is very low. This vulnerability is not listed in CISA’s KEV catalog. The problem arises from improper raw argument validation, which is categorized by CWEs 162, 182, 186, and 88. The most likely attack vector is an application that forwards untrusted input directly to the Net::IMAP library, allowing an attacker to send crafted IMAP commands from a user‑controlled context. Because the exploit requires a specific client use case, the risk of widespread exploitation is limited, but it can still cause a denial of service to the impacted application.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Ruby Net::IMAP gem to version 0.6.5 or 0.5.15, whichever applies to your codebase.
  • Validate or sanitize any user‑controlled input before raw command injection can occur.
  • Implement connection timeouts or retry logic to detect and recover from hung IMAP commands, mitigating temporary loss of service.

Generated by OpenCVE AI on August 2, 2026 at 01:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-c4fp-cxrr-mj66 Net::IMAP: Denial of Service via incomplete raw argument validation
History
Type Values Removed Values Added
Weaknesses CWE-88
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Ruby-lang
Ruby-lang net::imap
Vendors & Products Ruby-lang
Ruby-lang net::imap
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to 0.6.5 and 0.5.15, several Net::IMAP commands accept a raw string argument which is only validated to prevent CRLF injection and then sent verbatim. If this string is derived from user-controlled input, an attacker can force the next command to be absorbed as a continuation of the first command. This will cause the first command to eventually fail, but also prevents it from returning until another command is sent (from another thread). That other command will not return until the connection is closed. This vulnerability is fixed in 0.6.5 and 0.5.15.
Title Net::IMAP: Denial of Service via incomplete raw argument validation
Weaknesses CWE-162
CWE-182
CWE-186
References
Metrics cvssV4_0

{'score': 2.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-162

    Improper Neutralization of Trailing Special Elements

  • CWE-182

    Collapse of Data into Unsafe Value

  • CWE-186

    Overly Restrictive Regular Expression

  • CWE-88

    Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 23, 2026, 2:16 PM
Reserved
May 18, 2026, 10:54 PM
Status
Deferred
Published
Jun 22, 2026, 9:16 PM
Modified
Oct 25, 2026, 11:10 PM
Severity
Moderate
Public date
Jun 22, 2026, 8:11 PM