PT-2026-48340 · Cpan+2 · Net::Imap+2

·

CVE-2026-47240

·

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.6.5 Net::IMAP versions prior to 0.5.15
Description Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Certain commands accept a raw data argument that is sent verbatim after validation. If a server does not support non-synchronizing literals (literals that do not require a server continuation response), it may interpret specific byte sequences as the end of a malformed command line. This allows an attacker to inject arbitrary IMAP commands via a CRLF (Carriage Return Line Feed) injection attack, where the contents of the literal are interpreted as new pipelined commands. This issue affects the criteria parameter for search() and uid search(), the search keys parameter for sort(), thread(), uid sort(), and uid thread(), and the attr parameter for fetch() and uid fetch().
Recommendations Update to version 0.6.5 or later. Update to version 0.5.15 or later. Explicitly validate user-controlled inputs to prevent embedded non-synchronizing literals unless the server supports them. Prohibit all embedded literals by ensuring string inputs do not contain any CR or LF bytes. Verify that the server advertises LITERAL+, LITERAL-, or IMAP4rev2 capabilities before using untrusted string inputs for the affected raw data arguments.

Exploit

Fix

DoS

Command Injection

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
AZL-91281
CVE-2026-47240
ECHO-AED2-D0EE-EB0A
GHSA-8P34-64R3-MWG8
OESA-2026-3533
OESA-2026-3536
OESA-2026-3537
RHSA-2026:33551
RHSA-2026:33721
RHSA-2026:40380
SUSE-SU-2026:3090-1

Affected Products

Net::Imap
Red Os
Rocky Linux