# CVE-2026-42245: net-imap: Quadratic complexity when reading response literals

- Severity: Low 2.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-05-04T22:02:56.000Z
- Modified: 2026-09-10T03:51:06.713Z
- Also known as: GHSA-q2mw-fvj9-vvcw
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- ruby net-imap: < 0.4.24; >= 0.5.0, < 0.5.14; >= 0.6.0, < 0.6.4
- net-imap (RubyGems): from 0.6.0 before 0.6.4; from 0.5.0 before 0.5.14; before 0.4.24
- ruby-lang net::imap: before 0.4.24; from 0.5.0 before 0.5.14; from 0.6.0 before 0.6.4

## Every score

- GitHub_M: CVSS:4.0 2.3 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/ruby/net-imap/security/advisories/GHSA-q2mw-fvj9-vvcw> (mitigation, vendor-advisory, web)
- <https://github.com/ruby/net-imap/commit/6091f7d6b1f3514cafbfe39c76f2b5d73de3ca96> (patch, web)
- <https://github.com/ruby/net-imap/commit/88d95231fc8afef11c1f074453f7d75b68c9dfda> (patch, web)
- <https://github.com/ruby/net-imap/commit/de685f91a4a4cc75eb80da898c2bf8af08d34819> (patch, web)
- <https://github.com/ruby/net-imap/releases/tag/v0.4.24> (release-notes, web)
- <https://github.com/ruby/net-imap/releases/tag/v0.5.14> (release-notes, web)
- <https://github.com/ruby/net-imap/releases/tag/v0.6.4> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42245> (advisory)
- <https://github.com/ruby/net-imap> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/net-imap/CVE-2026-42245.yml> (web)

## Sources

- CVE List: [CVE-2026-42245](https://www.cve.org/CVERecord?id=CVE-2026-42245), CVE Terms of Use, modified 2026-05-12
- GitHub Advisory Database: [GHSA-q2mw-fvj9-vvcw](https://github.com/advisories/GHSA-q2mw-fvj9-vvcw), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-42245](https://nvd.nist.gov/vuln/detail/CVE-2026-42245), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-42245 · Whole record: https://cve.day/CVE-2026-42245.json · Rebuilt by cve.day 2026-11-25T22:59:21.147Z
