PT-2026-36987 · Ruby+2 · Net::Imap+2

·

CVE-2026-42256

·

Published

2025-06-29

·

Updated

2026-07-21

CVSS v3.1

6.5

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions net-imap (affected versions not specified)
Description A hostile IMAP server can trigger a computational denial-of-service attack on the client process during authentication using SCRAM-SHA1 or SCRAM-SHA256. By sending an arbitrarily large PBKDF2 iteration count in the server-first-message, the server forces the client to execute an expensive OpenSSL::KDF.pbkdf2 hmac() call. Since this function is a blocking C extension that holds the Ruby Global VM Lock (a mechanism that ensures only one thread executes Ruby code at a time), it can freeze the entire Ruby VM and block all threads for several minutes, depending on the hardware and OpenSSL version.
Recommendations Upgrade to a patched version of net-imap and call Net::IMAP#authenticate using a max iterations keyword argument set to a safe value appropriate for the security context. Avoid using SCRAM-* mechanisms when authenticating to untrusted servers.

Exploit

Fix

DoS

Allocation of Resources Without Limits

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

Weakness Enumeration

Related Identifiers

CLEANSTART-2026-RG00675
CLEANSTART-2026-UT74115
CVE-2026-42256
ECHO-0E5E-7C8E-8329
GHSA-87PF-FPWV-P7M7
OPENSUSE-SU-2026:21225-1
RHSA-2026:33551
RHSA-2026:33552
RHSA-2026:33721
USN-8478-1

Affected Products

Linuxmint
Ubuntu
Net::Imap