PT-2026-37050 · Cpan+1 · Net::Imap+1

·

CVE-2026-42258

·

Published

2026-05-04

·

Updated

2026-07-17

CVSS v3.1

7.1

High

VectorAV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N
Name of the Vulnerable Software and Affected Versions Net::IMAP versions prior to 0.4.24 Net::IMAP versions prior to 0.5.14 Net::IMAP versions prior to 0.6.4
Description Symbol arguments passed to IMAP commands are susceptible to CRLF Injection and IMAP Command injection. Symbol arguments represent IMAP system flags, which are formatted as atoms with a `` prefix. Vulnerable versions send the symbol name directly to the socket without validation, allowing the inclusion of invalid flag characters such as SP (space) and CRLF (carriage return line feed). This enables an attacker to terminate the current command and inject new, unauthorized IMAP commands, such as DELETE mailbox, if a developer passes user-controlled input as a Symbol to the affected commands.
Recommendations Update to version 0.4.24, 0.5.14, or 0.6.4 depending on the current major version branch. Avoid calling #to sym on unvetted user-provided input. Do not unsafely serialize and deserialize command arguments using methods like YAML or Marshal that could create unvetted Symbol arguments. Hard-code Symbol arguments or restrict them to a predefined enumerated list for IMAP commands that allow flag arguments.

Exploit

Fix

Command Injection

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

Weakness Enumeration

Related Identifiers

ALSA-2026:33512
ALSA-2026:33514
ALSA-2026:33515
ALSA-2026:33540
ALSA-2026:33565
ALSA-2026:33576
ALSA-2026:33577
CVE-2026-42258
ECHO-6D52-C40E-A517
GHSA-75XQ-5H9V-W6PX
OESA-2026-2578
RHSA-2026:33462
RHSA-2026:33512
RHSA-2026:33514
RHSA-2026:33515
RHSA-2026:33540
RHSA-2026:33565
RHSA-2026:33576
RHSA-2026:33577
RHSA-2026:33630
RHSA-2026:33721
RHSA-2026:34076
RHSA-2026:35834
RHSA-2026:35866
RHSA-2026:35867
RHSA-2026:35895
RHSA-2026:36099
SUSE-SU-2026:3090-1
USN-8556-1

Affected Products

Net::Imap
Rocky Linux