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

- Priority: **Routine**
- Reason: Not severe (CVSS 2.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-05-09 · Modified: 2026-05-12
- Aliases: UBUNTU-CVE-2026-42245, DEBIAN-CVE-2026-42245, CGA-44v6-7hqq-4mg4, CGA-4xpr-232v-p3p6, CGA-53mq-3qh9-7334, CGA-58rc-9fqx-99vj, CGA-5gfx-fj7q-2rhr, CGA-6cp9-cpfr-766j, CGA-6j76-vgh4-h735, CGA-74f2-9wj8-2f3c, CGA-755q-q8w6-hxm2, CGA-77jv-6qcw-2vfh, CGA-7gq5-c34c-2xg5, CGA-7xm5-mqhf-457r, CGA-8566-g2cp-27wr, CGA-8fwg-ccxq-4gcq, CGA-8pfg-hr7c-mvgf, CGA-8xp8-mjfc-wh8x, CGA-9gc3-w8xj-4h7r, CGA-chr5-9pg8-wr24, CGA-f7wm-wr2h-3v3h, CGA-fpmp-prc3-crpm, CGA-h2j5-9wjc-qr84, CGA-h3v8-3m7h-2frq, CGA-h95v-mqqg-mp5c, CGA-jh2p-23qw-78r2, CGA-m3c3-646c-hm84, CGA-rxpj-8wpm-rcc7, CGA-w447-c29j-77vr, CGA-w779-f7x2-fg5c, CGA-wq6g-m3cf-2jp7, CGA-x263-2qh2-j8v2, CGA-xc8c-55gh-3vgh, CGA-xhrf-63f3-cg73, CGA-25fg-5975-xxv6, CGA-29xf-44w7-mr9w, CGA-2j4f-77fw-c6px, CGA-2qxf-j2m4-c422, CGA-36cw-gfq2-7jm3, CGA-3f6x-7gcx-xjc8, CGA-3h9v-6j7q-xp7v, CGA-3mjw-9cf4-g9hq, CGA-4232-mg8v-cx9f, CGA-472p-65qx-ffrh, CGA-49wj-22fh-v7fv, CGA-4c89-5g77-2rvx, CGA-4ccg-jx99-x9v6, CGA-4jf9-vwfw-3w8j, CGA-4vq9-v6vj-r2x6, CGA-524m-j9vq-cgxp, CGA-537v-r37j-3cwx, CGA-58hr-43x2-c4v5, CGA-5c9w-jj9v-6729, CGA-5p9m-wm85-xc8r, CGA-5qrj-2c5m-mc26, CGA-5rj7-j8v9-q87m, CGA-5vvj-r9xr-48q7, CGA-63c4-h9vf-pcvh, CGA-645j-6g8g-v2v5, CGA-66h9-q23h-vj2x, CGA-6qhv-5v58-q35m, CGA-794m-43j8-4c33, CGA-85xw-2hx3-3xgj, CGA-8855-66jv-4c43, CGA-887f-xjxf-gfhv, CGA-8gr7-hh8m-5jp8, CGA-8j48-3725-rwpr, CGA-8vp9-9fhr-r797, CGA-8w2v-vr39-559m, CGA-8wc9-3jcf-mc8j, CGA-932c-97wc-39vv, CGA-9w4h-qjhx-6vcf, CGA-c5gr-rj8f-5g3r, CGA-c5q4-pw5m-j6c4, CGA-c956-mr3g-6q29, CGA-c977-6vc7-h5pf, CGA-cc53-xx9c-xgx4, CGA-cmw5-2g6v-gm2w, CGA-f4gc-frxc-7gv6, CGA-f8p7-vmpx-gpfr, CGA-fcwj-5gx9-9r36, CGA-fgx9-465f-hv54, CGA-fhr6-v4vx-88gc, CGA-fqpx-f9g9-rv9m, CGA-fr7f-wmx8-qrw2, CGA-fwp3-xjfr-rfj3, CGA-fx78-v3v6-h5r6, CGA-g3fj-hfvf-4rg4, CGA-g94v-j4cm-63wc, CGA-gp59-hgm4-2rfm, CGA-h737-xjf6-hvhc, CGA-hm9g-g37q-565r, CGA-j39r-3q98-v732, CGA-j5vf-c88j-xv8q, CGA-j6hj-3f7q-x9qx, CGA-j74f-r92c-h6qv, CGA-jfq3-8cw6-c3hg, CGA-jhwp-2pgw-rfc2, CGA-jj8q-5vf2-gcx7, CGA-jjj8-cvwv-q6wm, CGA-jm9x-ch4f-wvpp, CGA-jvqj-xfc3-fvwc, CGA-m3mw-7446-7pcv, CGA-m4f7-mv37-2qf8, CGA-mf2j-2q5h-3483, CGA-mfgw-4xj3-4hpp, CGA-mfh6-99gr-hq9g, CGA-mp6f-3jjc-x5h6, CGA-mrr5-2hr2-g8m6, CGA-p2mm-c8f8-wgpj, CGA-p8c9-5wq3-hw77, CGA-p8vj-89g8-qfv8, CGA-p9h4-fvvx-7227, GHSA-q2mw-fvj9-vvcw, CGA-qfvf-cfjp-9m85, CGA-r63h-9xpx-9qpc, CGA-r8p2-2rr4-wfv3, CGA-r953-xph8-jcw6, CGA-rqqj-q673-5v73, CGA-v25r-9px5-qf78, CGA-v9pm-m6p2-3cm4, CGA-vhh6-6x65-6jc5, CGA-vjh8-mmww-mm8p, CGA-vx4p-8wjc-mvjr, CGA-w27x-cwhv-vphh, CGA-w2m9-23rx-5v7q, CGA-w2wh-947p-vfx2, CGA-w696-4jg5-2vm8, CGA-wcpq-rm35-pvgq, CGA-wh9g-j5hj-xpg6, CGA-wppx-4g2m-f294, CGA-x9q8-38x6-w4w7, CGA-xgg2-rr3j-42jv, CGA-xh97-67h8-phg2, CGA-xp76-28jc-fgc6, CGA-xvxh-pxhw-qp4g, ALPINE-CVE-2026-42245
- Record: https://cvemate.com/vulnerability/CVE-2026-42245 · JSON: https://cvemate.com/vulnerability/CVE-2026-42245/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.41%, percentile 37.32%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 83)

- alpine ruby-net-imap (Alpine Linux): \< 0.4.25-r0
- chainguard gitlab-rails-ce-18.1 (Chainguard): \< 18.1.6-r10
- chainguard gitlab-rails-ce-18.10 (Chainguard): \< 18.10.5-r1
- chainguard gitlab-rails-ce-18.11 (Chainguard): \< 18.11.3-r1
- chainguard gitlab-rails-ce-18.3 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.4 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.6 (Chainguard): \< 18.6.6-r4
- chainguard gitlab-rails-ce-18.7 (Chainguard): \< 18.7.6-r3
- chainguard gitlab-rails-ce-18.8 (Chainguard): \< 18.8.9-r1
- chainguard gitlab-rails-ce-18.9 (Chainguard): \< 18.9.7-r2
- chainguard gitlab-rails-ce-fips-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.10 (Chainguard): \< 18.10.4-r1
- chainguard gitlab-rails-ce-fips-18.11 (Chainguard): \< 18.11.3-r2
- chainguard gitlab-rails-ce-fips-18.3 (Chainguard): \< 18.3.6-r7
- chainguard gitlab-rails-ce-fips-18.4 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.6 (Chainguard): \< 18.6.6-r4
- chainguard gitlab-rails-ce-fips-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.8 (Chainguard): All versions (No fix recorded)

## References

- <https://github.com/ruby/net-imap/security/advisories/GHSA-q2mw-fvj9-vvcw>
- <https://github.com/ruby/net-imap/commit/6091f7d6b1f3514cafbfe39c76f2b5d73de3ca96>
- <https://github.com/ruby/net-imap/commit/88d95231fc8afef11c1f074453f7d75b68c9dfda>
- <https://github.com/ruby/net-imap/commit/de685f91a4a4cc75eb80da898c2bf8af08d34819>
- <https://github.com/ruby/net-imap/releases/tag/v0.4.24>
- <https://github.com/ruby/net-imap/releases/tag/v0.5.14>
- <https://github.com/ruby/net-imap/releases/tag/v0.6.4>
- <https://ubuntu.com/security/CVE-2026-42245>
- <https://www.cve.org/CVERecord?id=CVE-2026-42245>
- <https://security-tracker.debian.org/tracker/CVE-2026-42245>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42245.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42245>
- <https://github.com/ruby/net-imap>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/net-imap/CVE-2026-42245.yml>
- <https://security.alpinelinux.org/vuln/CVE-2026-42245>

---

Data as of 2026-12-05T05:13:33.746Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
