# CVE-2025-61770: Rack's unbounded multipart preamble buffering enables 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-61770, DEBIAN-CVE-2025-61770, CGA-44rr-8gmm-xf22, CGA-5g8x-rfgv-6hv8, CGA-67mp-5hc7-mrv9, CGA-9v93-j8vw-m2x4, CGA-j648-p6q2-fggw, CGA-jh27-4jc4-rfxf, CGA-rm98-6f3v-3rvp, CGA-rw8g-wm66-77p8, CGA-vvj4-qx5w-gpp7, CGA-xj29-vr5r-x4r4, CGA-23rh-52wh-mm26, CGA-2578-wqf9-9fvv, CGA-2589-6pvc-3qhg, CGA-3496-hhrr-qvp2, CGA-3gxc-4jv8-c9rq, CGA-3wh3-mhcw-2hg5, CGA-4243-c296-887h, CGA-48m8-r2w7-v78h, CGA-4g47-862g-6793, CGA-4mhw-r79j-f28r, CGA-53rw-w5vp-hc34, CGA-56m3-9xx2-4mxf, CGA-587c-cq3j-c34j, CGA-5fg2-fv72-83x8, CGA-5w3v-7ccw-7g5m, CGA-658g-w8mp-c3g6, CGA-65h5-832x-3c3r, CGA-66qr-69q2-v789, CGA-69f2-r2mh-r37v, CGA-72mg-gj3v-9vxr, CGA-73jj-4f42-5jqc, CGA-77hq-6mf4-jrfw, CGA-7ggc-gwjj-qrfm, CGA-7r79-75gj-v2p2, CGA-7v7r-f6x3-w4h3, CGA-7w9m-4pg4-8pvg, CGA-7xq3-m3vr-5538, CGA-833p-4g83-7vcg, CGA-8jm6-7473-qrc7, CGA-8rf7-jc2q-fr3m, CGA-8vgq-fvxj-7g2p, CGA-8w38-74xj-mq7m, CGA-928w-jwjm-37pf, CGA-9gqp-c9hh-cmwf, CGA-9vgr-xp3g-r3wx, CGA-9x52-cpvj-mf27, CGA-c3jh-vjr5-mv98, CGA-c4gg-jr42-wp4w, CGA-c55w-746c-8x77, CGA-cqqx-jc3v-vcpx, CGA-cxxp-h5hv-97jj, CGA-fcgp-r9vh-6358, CGA-fmv6-wmpp-3qh5, CGA-fqxj-gpx6-xppr, CGA-g2w9-6gp8-6mjq, CGA-g3v7-jx7p-8jwh, CGA-gf9c-2g9j-c768, CGA-gxjh-hgfj-3gh4, CGA-h4h8-w97f-6695, CGA-h7gv-8r3v-29hv, CGA-hf6q-xwgf-8gvq, CGA-jpjm-97jg-428w, CGA-jrq4-76w9-9493, CGA-m29q-45f2-7c85, CGA-m2mp-hpvf-cmr9, CGA-m2xf-x3hg-gc74, CGA-m45p-45f4-gf25, CGA-mg92-9fxq-p8g9, CGA-mh7f-4gfq-p3mv, CGA-mm57-xxj3-rv29, CGA-mx72-7gwg-293v, CGA-phw8-9pwv-6vxr, CGA-pjj2-r422-4f89, GHSA-p543-xpfm-54cp, CGA-q7h5-2gv6-27vf, CGA-qw7v-7rj7-fg84, CGA-r254-8v72-pgp4, CGA-r2pq-8245-7w2m, CGA-r79v-565h-cvmq, CGA-r88f-8vf9-c67c, CGA-rh42-r3c5-9c3v, CGA-rvhv-xmjp-fhh6, CGA-rwmr-f272-4jf9, CGA-v568-77qf-258j, CGA-vgqm-8cj5-ppx9, CGA-vh2j-v8pv-j3g8, CGA-vh6q-3xmp-rfhm, CGA-vpgp-39c3-crpr, CGA-w2cx-33gw-5992, CGA-w3gx-rgqg-8f4x, CGA-w76x-fcm9-fx6h, CGA-wj7h-x8hh-r3cx, CGA-wx9q-vpc9-9w7r, CGA-wxrf-mcp6-f42v, CGA-x24g-fphf-3mjc, CGA-x2mf-p6xr-wqf3, CGA-x8g6-qpvj-548f, CGA-x8p3-3c4q-3pxf, CGA-xmrp-rjpr-vjmf, CGA-xw5p-rwqv-p377, CGA-xwgr-348x-7cww
- Record: https://cvemate.com/vulnerability/CVE-2025-61770 · JSON: https://cvemate.com/vulnerability/CVE-2025-61770/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` buffers the entire multipart preamble (bytes before the first boundary) in memory without any size limit. A client can send a large preamble followed by a valid boundary, causing significant memory use and potential process termination due to out-of-memory (OOM) conditions. Remote attackers can trigger large transient memory spikes by including a long preamble in multipart/form-data requests. The impact scales with allowed request sizes and concurrency, potentially causing worker crashes or severe slowdown due to garbage collection. Versions 2.2.19, 3.1.17, and 3.2.2 enforce a preamble size limit (e.g., 16 KiB) or discard preamble data entirely. Workarounds include limiting total request body size at the proxy or web server level and monitoring memory and set per-process limits to prevent OOM conditions.
```

## 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.976%, percentile 63.289%, 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-p543-xpfm-54cp>
- <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-61770>
- <https://www.cve.org/CVERecord?id=CVE-2025-61770>
- <https://ubuntu.com/security/notices/USN-7960-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-61770>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/61xxx/CVE-2025-61770.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-61770>
- <https://github.com/rack/rack>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2025-61770.yml>

---

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