# CVE-2025-61771: Rack's multipart parser buffers large non‑file fields entirely in memory, enabling DoS (memory exhaustion)

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 2.2.19, 3.1.17, 3.2.2 (CNA); fix release not confirmed
- Status: published
- Published: 2025-10-07 · Modified: 2025-10-07
- Aliases: UBUNTU-CVE-2025-61771, DEBIAN-CVE-2025-61771, CGA-27jv-6856-q8vq, CGA-3jfc-5m36-qp49, CGA-5747-rfqq-wv5c, CGA-75hm-hm6q-prr6, CGA-9jrx-8684-89c5, CGA-fc6q-g53h-w4m2, CGA-gcfx-rrf2-g55v, CGA-j956-ccjv-wf9c, CGA-rrhv-96h3-337r, CGA-xr2p-2jv6-m266, CGA-2984-pxc4-gprx, CGA-2f22-qvm7-cxxw, CGA-2jgf-cg35-962h, CGA-2pj2-7q2j-r8xj, CGA-2xvf-hm38-rcc4, CGA-33v8-cvmw-qp85, CGA-3457-x778-p7r7, CGA-3rpq-g8r6-f36g, CGA-42v9-fr8w-3qr3, CGA-47mv-jqvp-8cjx, CGA-4cx2-vc6x-mmr9, CGA-4x53-8fjw-r5q4, CGA-5635-j3j8-frw9, CGA-56r8-6fwm-g225, CGA-5c57-cw2g-6qhc, CGA-66hf-q4xq-442q, CGA-6hhh-rr3c-c7hv, CGA-6pgf-gf64-669c, CGA-6x72-m74w-m66p, CGA-74fh-r9m6-9p2q, CGA-7ph2-5rpj-v6r5, CGA-7vmf-8rxv-5j99, CGA-7vxj-fhxm-4w26, CGA-892r-7w47-36f3, CGA-8p7c-h9c2-qc52, CGA-8vf3-749j-mvrq, CGA-8w42-q3vj-fx47, CGA-9mq5-94w3-w8fq, CGA-9q8v-h4xg-q4j2, CGA-c3hv-8w4v-pmc2, CGA-cgc9-hjvf-2fcm, CGA-ch8f-p7x3-c4wv, CGA-cj3p-c7rw-jj7v, CGA-cj67-vwh7-f4vq, CGA-cp49-9wg7-pfcx, CGA-cr9q-5r5m-6fpc, CGA-cw5c-4v8g-x7q5, CGA-cw7f-5255-qrwm, CGA-f3vx-2jvq-99cr, CGA-f64r-v8xf-fqfq, CGA-fwcq-3f86-84p8, CGA-g24f-fqjx-mvwx, CGA-g24q-fcw4-22xf, CGA-g2rj-qqm5-24gx, CGA-g8rm-92x2-5594, CGA-h29h-w5cq-6p5r, CGA-h434-9w47-p246, CGA-h76g-rq99-59r5, CGA-hj98-f4m3-v3g5, CGA-j228-m2q8-53vq, CGA-j4hf-g3q2-wfpm, CGA-j69p-qf2v-8ggf, CGA-j9gg-j5vg-2cjx, CGA-jgxj-mvj3-82vp, CGA-jjq3-2v3g-wg2g, CGA-jq2m-j7rj-mjw3, CGA-m3f7-r3v8-h7ww, CGA-m3x3-48px-gv3c, CGA-m623-r9cp-xwvv, CGA-mf3w-32f9-45cc, CGA-mfrv-ghc8-79hg, CGA-mxhr-j4x5-h5g9, CGA-p242-vxxp-4p2w, CGA-p2hp-ww3c-8256, CGA-p5w5-ccmg-3f38, CGA-p6qq-4p5w-p2cw, CGA-phgh-3j4w-m6qh, CGA-pqf6-2pjf-4prj, CGA-pw23-2mxh-7fm9, GHSA-w9pc-fmgc-vxvw, CGA-pxrg-3f4h-f7mc, CGA-q8rj-8hg6-p2fh, CGA-qcgj-j4gr-w76f, CGA-qgh3-83mh-3fm5, CGA-qvmv-fghw-rwwq, CGA-r4gg-r2rp-r5pm, CGA-r7fr-cvp9-69p6, CGA-rjj8-gmmf-76pr, CGA-rpmj-9h7w-2qq7, CGA-rv2v-578q-95jc, CGA-v3xh-mr26-f8w2, CGA-v929-4mjf-mghf, CGA-vr6h-5c52-6hwm, CGA-w532-fpq9-xffm, CGA-wwrp-f2rw-gp84, CGA-x39q-vg42-j332, CGA-x3wf-jv28-44pf, CGA-x9hr-pvq6-7p6x, CGA-xr38-4vrf-cq68, CGA-xrrx-x3pm-cqcq, CGA-xxvf-wr92-h3x6
- Record: https://cvemate.com/vulnerability/CVE-2025-61771 · JSON: https://cvemate.com/vulnerability/CVE-2025-61771/json

## Description

```text
Rack is a modular Ruby web server interface. In versions prior to 2.2.19, 3.1.17, and 3.2.2, ``Rack::Multipart::Parser` stores non-file form fields (parts without a `filename`) entirely in memory as Ruby `String` objects. A single large text field in a multipart/form-data request (hundreds of megabytes or more) can consume equivalent process memory, potentially leading to out-of-memory (OOM) conditions and denial of service (DoS). Attackers can send large non-file fields to trigger excessive memory usage. Impact scales with request size and concurrency, potentially leading to worker crashes or severe garbage-collection overhead. All Rack applications processing multipart form submissions are affected. Versions 2.2.19, 3.1.17, and 3.2.2 enforce a reasonable size cap for non-file fields (e.g., 2 MiB). Workarounds include restricting maximum request body size at the web-server or proxy layer (e.g., Nginx `client_max_body_size`) and validating and rejecting unusually large form fields at the application level.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.594%, percentile 49.826%, 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 59)

- chainguard gitlab-cng-18.2 (Chainguard): \< 18.2.8-r0
- chainguard gitlab-logger-18.2 (Chainguard): \< 18.2.8-r0
- chainguard gitlab-logger-18.3 (Chainguard): \< 18.3.4-r0
- chainguard gitlab-logger-18.4 (Chainguard): \< 18.4.2-r0
- chainguard gitlab-rails-ce-18.1 (Chainguard): \< 18.1.6-r13
- chainguard gitlab-rails-ce-18.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.2 (Chainguard): All versions (No fix recorded)
- chainguard logstash-8.17 (Chainguard): \< 8.17.10-r3
- chainguard logstash-8.17-compat (Chainguard): \< 8.17.10-r3
- chainguard logstash-8.17-env2yaml (Chainguard): \< 8.17.10-r3
- chainguard logstash-8.17-iamguarded-compat (Chainguard): \< 8.17.10-r3
- chainguard logstash-8.17-with-output-opensearch (Chainguard): \< 8.17.10-r3
- chainguard logstash-8.18 (Chainguard): \< 8.18.8-r1
- chainguard logstash-8.18-compat (Chainguard): \< 8.18.8-r1
- chainguard logstash-8.18-env2yaml (Chainguard): \< 8.18.8-r1
- chainguard logstash-8.18-iamguarded-compat (Chainguard): \< 8.18.8-r1
- chainguard logstash-8.18-with-output-opensearch (Chainguard): \< 8.18.8-r1
- chainguard logstash-8.19 (Chainguard): \< 8.19.5-r1
- chainguard logstash-8.19-compat (Chainguard): \< 8.19.5-r1

## References

- <https://github.com/rack/rack/security/advisories/GHSA-w9pc-fmgc-vxvw>
- <https://github.com/rack/rack/commit/589127f4ac8b5cf11cf88fb0cd116ffed4d2181e>
- <https://github.com/rack/rack/commit/d869fed663b113b95a74ad53e1b5cae6ab31f29e>
- <https://github.com/rack/rack/commit/e08f78c656c9394d6737c022bde087e0f33336fd>
- <https://ubuntu.com/security/CVE-2025-61771>
- <https://www.cve.org/CVERecord?id=CVE-2025-61771>
- <https://ubuntu.com/security/notices/USN-7960-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-61771>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/61xxx/CVE-2025-61771.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-61771>
- <https://github.com/rack/rack>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2025-61771.yml>

---

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