PT-2026-36986 · Cpan · Net::Imap
Masamuneee
·
Published
2026-05-04
·
Updated
2026-05-16
·
CVE-2026-42245
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Net::IMAP (affected versions not specified)
Description
Net::IMAP::ResponseReader exhibits quadratic time complexity when processing large responses containing numerous string literals. A hostile server can send specially crafted responses that force the ResponseReader to rescan the entire growing response buffer for each literal, leading to excessive CPU consumption and a denial of service. This algorithmic complexity allows the issue to bypass max response size protections, as a response can remain below the size limit while still incurring high CPU costs. Because the process retains the Global VM lock during scanning, other threads are significantly impacted.Recommendations
Upgrade to a patched version of net-imap.
Avoid connecting to untrusted IMAP servers.
When connecting to untrusted servers, reduce
max response size to a much smaller value, such as 8KiB, to limit the impact.Exploit
Fix
DoS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Net::Imap