CVE-2026-42245
Received
Received - Intake
Denial of Service in Ruby Net::IMAP Client
Publication date: 2026-05-09
Last updated on: 2026-05-18
Assigner: GitHub, Inc.
Description
Description
Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.4.24, 0.5.14, and 0.6.4, 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. This issue has been patched in versions 0.4.24, 0.5.14, and 0.6.4.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| ruby-lang | net | to 0.4.24 (exc) |
| ruby-lang | net | From 0.5.0 (inc) to 0.5.14 (exc) |
| ruby-lang | net | From 0.6.0 (inc) to 0.6.4 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-407 | An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached. |