# CVE-2026-34230: Rack: Quadratic complexity in Rack::Utils.select\_best\_encoding via wildcard Accept-Encoding header

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-02 · Modified: 2026-04-03
- Aliases: UBUNTU-CVE-2026-34230, DEBIAN-CVE-2026-34230, CGA-297j-2658-7wv2, CGA-2rxq-vjfm-q93x, CGA-2wqf-xcj9-c56r, CGA-4jx7-5hr4-f8hp, CGA-5pg2-f567-4m24, CGA-67cc-fg9q-3cf2, CGA-8wr8-g56v-45jj, CGA-9cff-qr47-7m94, CGA-f553-63rv-m745, CGA-ffqp-h3x5-rhj4, CGA-fgx6-g6gq-287g, CGA-g4vp-j4rr-jw7h, CGA-h52h-f658-j29v, CGA-hqq2-rm26-8vqg, CGA-jg58-ffc2-gjjx, CGA-p844-vgmq-m53q, CGA-px9w-6jr6-8g7q, CGA-q9vh-h7fm-8hgx, CGA-qx48-v2px-fxmj, CGA-x6gm-2549-5fh6, CGA-236m-3v6v-xx88, CGA-25mc-gc6w-9x65, CGA-273m-6qcv-w4r7, CGA-2cv6-9q3x-4gm7, CGA-2fhf-vhh5-wh4h, CGA-2mrx-85rj-vpr8, CGA-2qr7-4pqx-49g4, CGA-2rxj-vgcw-w2qw, CGA-327w-67vp-3pvp, CGA-3f3q-v6pw-xvg3, CGA-3gmp-pr8g-p95q, CGA-44cp-qq7x-f8c9, CGA-45wg-rp57-w94c, CGA-4qwh-ccmj-r726, CGA-535x-7848-h7j2, CGA-56hh-g42c-9jvc, CGA-57x9-rg89-2vf3, CGA-5c26-85wh-7256, CGA-5hp6-5vgg-jh94, CGA-64r2-6xx5-mr9w, CGA-6692-3wjv-vrh6, CGA-6frw-2f7m-h3gm, CGA-764x-ggjx-j764, CGA-766q-6xx7-3rxq, CGA-7frj-mfgc-h94w, CGA-7mpg-cr5x-f8q8, CGA-7q97-g4hq-v83w, CGA-7qv6-6ppw-9c3j, CGA-7r6m-4r6w-p95w, CGA-7vjr-wfm2-2h2h, CGA-89qw-2jrr-xh3m, CGA-8j4f-7wpw-g9h3, CGA-8m26-vjm6-rrrr, CGA-8qfp-3g95-v98v, CGA-8rgw-6wv6-57m7, CGA-8rrq-jv69-cqrm, CGA-8w7w-w5q4-vxwg, CGA-98p9-2x59-2j6c, CGA-98v6-2f6r-fj3x, CGA-9j7q-xmc8-4mmr, CGA-9jcw-q8pw-9rxq, CGA-c2vf-22rj-5vc7, CGA-c327-vj5q-c74g, CGA-c42v-gw4p-m87j, CGA-cff8-585h-cmw7, CGA-cg45-9rf3-gm5w, CGA-chjq-jjvv-7wmp, CGA-cvmp-7q59-wp26, CGA-f26r-vgj9-w8m6, CGA-fc62-h8m8-m54g, CGA-fcm2-8jpp-f4qp, CGA-fp39-qgwh-xrpj, CGA-fq3q-qhp7-rpmv, CGA-fqfw-6mmw-54h7, CGA-gg95-xgcq-45p7, CGA-h2vh-g6wj-hj5c, CGA-h39h-m7fw-p3r2, CGA-h3g4-qxp8-qm9v, CGA-h4jg-5jqf-6882, CGA-h6gq-6wx9-mf9p, CGA-h878-v595-xh6m, CGA-h962-f86p-4j2m, CGA-hvcc-fgch-4hmv, CGA-hxph-f8qx-ghf4, CGA-j72j-2p9h-cg5v, CGA-jgcg-qhg4-8wfq, CGA-jm4j-qcvj-69gw, CGA-jr59-j85r-69h6, CGA-jrxv-8gjx-c444, CGA-jwh4-c469-9mgg, CGA-jwp4-2mc8-925v, CGA-mfmf-42gv-44j6, CGA-mvvh-84rw-c36w, CGA-p2fq-936h-j2xc, CGA-p4w6-j93x-fj64, CGA-pccw-j882-6mgf, CGA-pjr6-x83f-xwcm, CGA-pp72-36g5-f882, GHSA-v569-hp3g-36wr, CGA-pxpm-74gg-r6hj, CGA-qgcm-qww9-v44g, CGA-qh7f-rrjw-hc3x, CGA-qrv6-wvrh-hrvc, CGA-r6rm-7rwp-4cx8, CGA-rgx3-6fmm-jm72, CGA-rp3g-93j6-384h, CGA-rvq3-83g8-mj85, CGA-v5cv-xwmr-mcxc, CGA-vgpv-3h3x-5vxc, CGA-vv9c-8r62-x3fc, CGA-vvj4-xr97-w6f8, CGA-w387-vwpc-j26r, CGA-w7vf-wh5q-xffr, CGA-wp5p-jwfj-gxhc, CGA-x679-7fh8-fh24, CGA-xcfx-xgcm-qw4w, CGA-xhc6-w7qx-965v, CGA-xrm8-8xxg-87g9, CGA-xvwq-6xmc-j6gq
- Record: https://cvemate.com/vulnerability/CVE-2026-34230 · JSON: https://cvemate.com/vulnerability/CVE-2026-34230/json

## Description

```text
Rack is a modular Ruby web server interface. Prior to versions 2.2.23, 3.1.21, and 3.2.6, Rack::Utils.select_best_encoding processes Accept-Encoding values with quadratic time complexity when the header contains many wildcard (*) entries. Because this method is used by Rack::Deflater to choose a response encoding, an unauthenticated attacker can send a single request with a crafted Accept-Encoding header and cause disproportionate CPU consumption on the compression middleware path. This results in a denial of service condition for applications using Rack::Deflater. This issue has been patched in versions 2.2.23, 3.1.21, and 3.2.6.
```

## 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.488%, percentile 43.652%, 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 69)

- chainguard gitlab-exporter-18.10 (Chainguard): \< 18.10.3-r0
- chainguard gitlab-exporter-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-exporter-18.8 (Chainguard): \< 18.8.9-r0
- chainguard gitlab-exporter-18.9 (Chainguard): \< 18.9.5-r0
- chainguard gitlab-rails-ce-18.1 (Chainguard): \< 18.1.6-r13
- chainguard gitlab-rails-ce-18.10 (Chainguard): \< 18.10.4-r0
- chainguard gitlab-rails-ce-18.2 (Chainguard): All versions (No fix recorded)
- 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): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): \< 18.8.10-r0
- chainguard gitlab-rails-ce-18.9 (Chainguard): \< 18.9.6-r0
- chainguard gitlab-rails-ce-fips-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.10 (Chainguard): \< 18.10.4-r0
- chainguard gitlab-rails-ce-fips-18.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.3 (Chainguard): All versions (No fix recorded)
- 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)

## References

- <https://github.com/rack/rack/security/advisories/GHSA-v569-hp3g-36wr>
- <https://ubuntu.com/security/CVE-2026-34230>
- <https://www.cve.org/CVERecord?id=CVE-2026-34230>
- <https://ubuntu.com/security/notices/USN-8182-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-34230>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34230.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34230>
- <https://github.com/rack/rack>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2026-34230.yml>
- <https://ubuntu.com/security/notices/USN-8989-1>

---

Data as of 2026-12-05T07:37:38.185Z. 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
