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

·

CVE-2026-47241

·

Published

2026-06-09

·

Updated

2026-08-30

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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

DoS

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

Weakness Enumeration

Related Identifiers

ALSA-2026:50827
ALSA-2026:50828
CVE-2026-47241
ECHO-BF99-96EE-AF6B
GHSA-C4FP-CXRR-MJ66
OESA-2026-3533
OESA-2026-3536
OESA-2026-3537
RHSA-2026:33551
RHSA-2026:33721
RHSA-2026:34293
RHSA-2026:40380
SUSE-SU-2026:3090-1

Affected Products

Net::Imap
Red Os
Rocky Linux