# CVE-2025-49007: ReDoS Vulnerability in Rack::Multipart handle\_mime\_head

- Priority: **Routine**
- Reason: Not severe (CVSS 6.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-06-04 · Modified: 2025-06-05
- Aliases: UBUNTU-CVE-2025-49007, DEBIAN-CVE-2025-49007, CGA-36vc-pwvx-3j4w, CGA-mfcp-8vvr-7cw3, CGA-2343-4mpv-287v, CGA-2v59-x25f-x237, CGA-3fqg-mpp4-x44g, CGA-3gcp-v5qp-2v3w, CGA-3wf2-87vp-fvfh, CGA-536r-48fj-g637, CGA-53c9-xqm5-57fq, CGA-56cm-cc33-m7j2, CGA-59jg-x3fm-2hx4, CGA-69w9-mhm6-g7vc, CGA-745r-7qv9-89vg, CGA-75fj-fgv4-frhr, CGA-76pr-5fxg-37j2, CGA-7wgg-gw65-fq7w, CGA-8fwc-r93w-495w, CGA-8m3f-m2hg-xh89, CGA-9397-6xj3-wf23, CGA-946p-q8wf-v38p, CGA-f66g-wf6c-jv2v, CGA-fj99-2fv3-q9cw, CGA-fqw4-fcp4-3r8r, CGA-gjcp-w699-jh93, CGA-gmhv-9vqm-vv2q, CGA-hv93-54cc-3f5c, CGA-j42j-wf4r-8xh9, CGA-j9qh-5hwr-q42f, CGA-m6jc-vx7m-fxj8, CGA-p374-m43f-xr3j, CGA-pjr5-q53j-82wq, CGA-pjwc-g5hm-fvgh, GHSA-47m2-26rw-j2jw, CGA-r854-jgr4-j8j2, CGA-r9qf-rr7g-wjm2, CGA-v47x-2mxg-7phq, CGA-wcw5-955m-f572, CGA-wwjp-cqvx-4qq6, CGA-x6vh-89c3-mpjf
- Record: https://cvemate.com/vulnerability/CVE-2025-49007 · JSON: https://cvemate.com/vulnerability/CVE-2025-49007/json

## Description

```text
Rack is a modular Ruby web server interface. Starting in version 3.1.0 and prior to version 3.1.16, there is a denial of service vulnerability in the Content-Disposition parsing component of Rack. This is very similar to the previous security issue CVE-2022-44571. Carefully crafted input can cause Content-Disposition header parsing in Rack to take an unexpected amount of time, possibly resulting in a denial of service attack vector. This header is used typically used in multipart parsing. Any applications that parse multipart posts using Rack (virtually all Rails applications) are impacted. Version 3.1.16 contains a patch for the vulnerability.
```

## Signals

- CVSS: 6.6 medium (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U
- EPSS: 0.584%, percentile 49.368%, 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 24)

- chainguard logstash-8-with-output-opensearch (Chainguard): \< 8.18.2-r1
- chainguard ruby3.2-rails-7.1 (Chainguard): \< 7.1.5.1-r8
- chainguard ruby3.2-rails-7.1-compat (Chainguard): \< 7.1.5.1-r8
- chainguard ruby3.2-rails-7.2 (Chainguard): \< 7.2.2.1-r8
- chainguard ruby3.2-rails-7.2-compat (Chainguard): \< 7.2.2.1-r8
- chainguard ruby3.2-rails-8.0 (Chainguard): \< 8.0.2-r5
- chainguard ruby3.2-rails-8.0-compat (Chainguard): \< 8.0.2-r5
- chainguard ruby3.3-rails-7.1 (Chainguard): \< 7.1.5.1-r8
- chainguard ruby3.3-rails-7.1-compat (Chainguard): \< 7.1.5.1-r8
- chainguard ruby3.3-rails-7.2 (Chainguard): \< 7.2.2.1-r8
- chainguard ruby3.3-rails-7.2-compat (Chainguard): \< 7.2.2.1-r8
- chainguard ruby3.3-rails-8.0 (Chainguard): \< 8.0.2-r5
- chainguard ruby3.3-rails-8.0-compat (Chainguard): \< 8.0.2-r5
- chainguard ruby3.4-rails-7.1 (Chainguard): \< 7.1.5.1-r8
- chainguard ruby3.4-rails-7.1-compat (Chainguard): \< 7.1.5.1-r8
- chainguard ruby3.4-rails-7.2 (Chainguard): \< 7.2.2.1-r8
- chainguard ruby3.4-rails-7.2-compat (Chainguard): \< 7.2.2.1-r8
- chainguard ruby3.4-rails-8.0 (Chainguard): \< 8.0.2-r5
- chainguard ruby3.4-rails-8.0-compat (Chainguard): \< 8.0.2-r5
- wolfi logstash-8-with-output-opensearch (Wolfi): \< 8.18.2-r1

## References

- <https://github.com/rack/rack/security/advisories/GHSA-47m2-26rw-j2jw>
- <https://github.com/rack/rack/commit/4795831a0a310c2d31102749e551b38faab6401f>
- <https://github.com/rack/rack/commit/aed514df37e33907df3c971ed3ca9a0a20ac2901>
- <https://ubuntu.com/security/CVE-2025-49007>
- <https://www.cve.org/CVERecord?id=CVE-2025-49007>
- <https://security-tracker.debian.org/tracker/CVE-2025-49007>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/49xxx/CVE-2025-49007.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-49007>
- <https://github.com/rack/rack>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2025-49007.yml>

---

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