PT-2026-48341 · Rubygems · Net::Imap

·

CVE-2026-47241

·

Published

2026-06-09

·

Updated

2026-07-17

CVSS v4.0

2.1

Low

VectorAV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions Net::IMAP versions prior to 0.5.15 Net::IMAP versions prior to 0.6.5
Description Several commands in the Net::IMAP Ruby client accept raw string arguments that are only validated to prevent CRLF injection and are then sent verbatim. An incorrect regular expression in the trailing-marker check fails to match {0} or {0+}, allowing attacker-controlled strings ending in these markers to pass validation. When these arguments are sent, the server interprets the trailing CRLF as part of a literal prefix, causing the next command sent by the client to be absorbed as a continuation of the first. This results in the first command eventually failing and the second command hanging until the connection is closed, potentially leading to a denial of service through unexpected crashes and timeouts. This issue is particularly impactful in multi-threaded environments.
The affected components include:
  • The criteria variable for the #search and #uid search endpoints.
  • The search keys variable for the #sort, #thread, #uid sort, and #uid thread endpoints.
  • The attr variable for the #fetch and #uid fetch endpoints.
Recommendations Update to version 0.5.15 or 0.6.5. As a temporary workaround, validate that user input provided to the affected command arguments does not end with the } character. Implement Timeout or other standard strategies for managing slow connections and misbehaving servers to mitigate the effects of hanging commands.

Exploit

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-47241
ECHO-BF99-96EE-AF6B
GHSA-C4FP-CXRR-MJ66
RHSA-2026:33551
RHSA-2026:33721
RHSA-2026:34293
RHSA-2026:40380
SUSE-SU-2026:3090-1

Affected Products

Net::Imap