Vulnerability · Published Jun 4, 2025 · Assigned by GitHub_M
CVE-2025-49007ReDoS Vulnerability in Rack::Multipart handle_mime_head
Medium 6.6
In plain English
A medium-severity resource allocation without limits in rack from rack. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | ruby-rack | 3.1.16-0.1 | DEBIAN-CVE-2025-49007 |
| Debian:14 | ruby-rack | 3.1.16-0.1 | DEBIAN-CVE-2025-49007 |
| RubyGems | rack | 3.1.16 | GHSA-47m2-26rw-j2jw |
| Ubuntu:22.04:LTS | ruby-rack | no fix listed | UBUNTU-CVE-2025-49007 |
| Ubuntu:24.04:LTS | ruby-rack | no fix listed | UBUNTU-CVE-2025-49007 |
Affected products (as reported)
Weakness: CWE-770 · Vector: 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