# CVE-2026-142591: Rack: \`Rack::QueryParser\` separator pattern allocates ~48 bytes per space after \`&\`, allowing denial of service via memory amplification.

- 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-12-02 · Modified: 2026-12-03
- Aliases: GHSA-f7cc-57h7-qrcg, CGA-3w48-x739-r9gr, CGA-4h54-2rvp-xj9m, CGA-4r5m-m9w7-wvpq, CGA-6wmx-2ghj-fx3f, CGA-pm2p-j9xm-vp57, CGA-23cq-4fwc-mg4m, CGA-2hvh-j247-p7qq, CGA-2rhh-fq3r-88g4, CGA-3f2v-hfqm-8cx6, CGA-3x57-55rc-4pp5, CGA-686r-g378-3xwc, CGA-687f-8qgm-r6j5, CGA-6gfx-vj8p-f35h, CGA-8ghf-rmc4-xc6w, CGA-8rmp-vj68-hq5j, CGA-992m-g5vh-p6vv, CGA-99r6-rgwj-rp7j, CGA-9p3p-7g92-ccxm, CGA-c8hj-666h-xw2f, CGA-cq33-pwjv-7wjp, CGA-fhxm-6p3p-5h3p, CGA-frqp-wh39-56rp, CGA-fwgp-56m7-xmq3, CGA-ghgr-f2m7-whhw, CGA-qpgv-5g22-v9xg, CGA-qq8f-hmqr-m4vj, CGA-qx5v-884p-qm2w, CGA-rwcc-h3q5-wq52, CGA-vhvq-fvjr-f22v, CGA-vhw5-xpq9-x995, CGA-wqf7-8cgv-5pxp, CGA-wwq5-vjwx-qmqw, CGA-3646-45m6-vmc8, CGA-9ffm-9rv9-c2pp, CGA-p6p8-95qf-7v9h, CGA-2r8v-42j4-84xh, CGA-32g8-x5r3-9r8g, CGA-3f7h-g26h-vr5j, CGA-4hqj-h8gg-99wx, CGA-4v4m-pgq4-54gf, CGA-4x9f-785w-r9mq, CGA-5232-r985-7rrx, CGA-8p4c-558x-mjxw, CGA-8whr-754q-mcrq, CGA-9f2p-9748-c248, CGA-c72g-22mw-qh6m, CGA-cj63-269j-xx9f, CGA-g28w-vmr6-7fvf, CGA-h95h-pf48-ccjf, CGA-hvfc-qmgh-r9cm, CGA-hw93-882c-4g5h, CGA-hx3x-5mv2-hfhv, CGA-j46c-q249-xhx5, CGA-jg4r-5w37-8v7f, CGA-m2mh-w9qm-37pm, CGA-mjcm-wf8j-67gh, CGA-mmh3-8vjc-3vp6, CGA-pc46-7535-f6jc, CGA-qfp6-89pq-pvgj, CGA-qx9w-xcqr-28jg, CGA-r4v2-8g7h-pqpv, CGA-rhfx-h4wf-qx87, CGA-rm8j-6v5h-qgwm, CGA-rmjx-3p47-pghv, CGA-w447-33hc-c9jj, CGA-w89v-72q2-r653, CGA-wjhw-c2m3-5mmx, CGA-ww3c-j4rr-2gjx, CGA-c2fj-93w3-hvhx, CGA-f33q-cxrq-cq62, CGA-j77x-7xr3-mpp4, CGA-m9vp-4rfv-689f, CGA-r47g-46w9-mp38, CGA-c3rc-4hr6-r457, CGA-v6v5-w76v-fhhx, CGA-wcqj-7jfg-m3wj
- Record: https://cvemate.com/vulnerability/CVE-2026-142591 · JSON: https://cvemate.com/vulnerability/CVE-2026-142591/json

## Description

```text
Rack is a modular Ruby web server interface. Prior to 2.2.26, 3.1.24, and 3.2.9, Rack::QueryParser uses the quantified DEFAULT_SEP and COMMON_SEP regular expressions when splitting query strings and application/x-www-form-urlencoded bodies, while params_hash_has_key? and the Rack 2.2 normalize_params path use quantified expressions for bracketed parameter names. Long runs of spaces after an ampersand, or long runs of bracket characters in a parameter name, cause Ruby's regular expression engine to allocate approximately 48 bytes of backtracking state per input character. RACK_QUERY_PARSER_BYTESIZE_LIMIT bounds the request size but not this amplification, and RACK_QUERY_PARSER_PARAMS_LIMIT does not prevent it because very few parameters are required. An unauthenticated attacker can cause substantial transient memory allocation with one request, and concurrent requests can exhaust process or container memory. This issue is fixed in versions 2.2.26, 3.1.24, and 3.2.9.
```

## Signals

- CVSS: 5.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- EPSS: 0.607%, percentile 50.505%, 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 47)

- chainguard commercial-gitlab-rails-ee-19.1 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-19.2 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-19.3 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-19.4 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-19.5 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-19.6 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-fips-19.1 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-fips-19.2 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-fips-19.3 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-fips-19.4 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-fips-19.5 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-fips-19.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.11 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.0 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.3 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.4 (Chainguard): All versions (No fix recorded)

## References

- <https://github.com/rack/rack/security/advisories/GHSA-f7cc-57h7-qrcg>
- <https://github.com/rack/rack/commit/59fae908d13587922bb29a89c161441d4de0cab6>
- <https://github.com/rack/rack/commit/bc0ad07de8603e545fb07936c8d28b9e7ec29804>
- <https://github.com/rack/rack/commit/d895d94b88a3233eb0f2e59d3ddb9fc6a0b630ef>
- <https://github.com/rack/rack/releases/tag/v2.2.26>
- <https://github.com/rack/rack/releases/tag/v3.1.24>
- <https://github.com/rack/rack/releases/tag/v3.2.9>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-142591>
- <https://github.com/rack/rack>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142591.json>

---

Data as of 2026-12-05T08:26:42.418Z. 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
