Denial of Service Vulnerability in Ruby's Net::IMAP Implementation
CVE-2026-42245
2.3LOW
What is CVE-2026-42245?
The Net::IMAP library in Ruby, which provides IMAP client functionality, is affected by an issue where the ResponseReader can experience quadratic time complexity when processing large responses with multiple string literals. This could enable a malicious server to construct responses capable of consuming excessive CPU resources, potentially leading to a denial of service condition. The problem has been addressed in subsequent releases 0.4.24, 0.5.14, and 0.6.4, which optimize the handling of IMAP responses.
Affected Version(s)
net-imap < 0.4.24 < 0.4.24
net-imap >= 0.5.0, < 0.5.14 < 0.5.0, 0.5.14
net-imap >= 0.6.0, < 0.6.4 < 0.6.0, 0.6.4
