Back to list

net-imap has quadratic complexity when reading response literals — CVE-2026-42245

GitHub · GitHub · CVE-2026-42245

ID
CVE-2026-42245
Date
Updated
Activity
Source
GitHub
Vendor
GitHub
Threat
low
CVSS
2.3
EPSS
0.00062

Summary

### Summary `Net::IMAP::ResponseReader` has quadratic time complexity when reading large responses containing many string literals. A hostile server can send responses which are crafted to exhaust the client's CPU for a denial of service attack. ### Details For each literal in a response, `ResponseReader` rescans the entire growing response buffer. The regular expression that is used to scan the response buffer…

Product

rubygems: net-imap

What to do

General, cautious steps (verify details in the official source):

  • Review exposure and plan remediation based on risk and environment.
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Related advisories