# CVE-2025-49007: ReDoS Vulnerability in Rack::Multipart handle_mime_head

- Severity: Medium 6.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 49% of CVEs (2026-12-01)
- Published: 2025-06-04T22:42:52.515Z
- Modified: 2026-09-10T03:50:24.787Z
- Also known as: GHSA-47m2-26rw-j2jw
- Weaknesses: CWE-770, CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- rack rack: >= 3.1.0, < 3.1.16; from 3.1.0 before 3.1.16
- rack (RubyGems): from 3.1.0 before 3.1.16

## Every score

- GitHub_M: CVSS:4.0 6.6 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/rack/rack/security/advisories/GHSA-47m2-26rw-j2jw> (vendor-advisory, web)
- <https://github.com/rack/rack/commit/4795831a0a310c2d31102749e551b38faab6401f> (patch, web)
- <https://github.com/rack/rack/commit/aed514df37e33907df3c971ed3ca9a0a20ac2901> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-49007> (advisory)
- <https://github.com/rack/rack> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2025-49007.yml> (web)

## Sources

- CVE List: [CVE-2025-49007](https://www.cve.org/CVERecord?id=CVE-2025-49007), CVE Terms of Use, modified 2025-06-05
- GitHub Advisory Database: [GHSA-47m2-26rw-j2jw](https://github.com/advisories/GHSA-47m2-26rw-j2jw), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-49007](https://nvd.nist.gov/vuln/detail/CVE-2025-49007), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-49007 · Whole record: https://cve.day/CVE-2025-49007.json · Rebuilt by cve.day 2026-11-25T22:58:58.767Z
