CVE-2025-49007 — ReDoS Vulnerability in rack — CVE Details
ReDoS Vulnerability in Rack::Multipart handle_mime_head
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.06%). Schedule for your next planned update.
Does your project use an affected rack version?
Paste your Gemfile.lock to check it for CVE-2025-49007 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
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.
Details
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.
Credits
Thanks to scyoon for reporting this to the Rails security team
Advisory Timeline
- First published June 5, 2025 (539 days ago).
- Last revised September 10, 2026 — 462 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install rack -v 3.1.16
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| rack RubyGems · Affected: 3.1.0, 3.1.1, 3.1.10, 3.1.11 (+12 more) | 3.1.16 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-770Allocation of Resources Without LimitsMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
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
References
- https://github.com/rack/rack/security/advisories/GHSA-47m2-26rw-j2jwWEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-49007ADVISORY
- https://github.com/rack/rack/commit/4795831a0a310c2d31102749e551b38faab6401fWEB
- https://github.com/rack/rack/commit/aed514df37e33907df3c971ed3ca9a0a20ac2901WEB
- https://github.com/rack/rackPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2025-49007.ymlWEB
Frequently Asked Questions
- What is CVE-2025-49007?
- ReDoS Vulnerability in Rack::Multipart handle_mime_head. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2025-49007?
- CVE-2025-49007 affects rack. It has a 1.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-49007 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 64% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2025-46727HIGH
Rack has an Unbounded-Parameter DoS in Rack::QueryParser
- CVE-2026-34785HIGH
Rack::Static prefix matching can expose unintended files under the static root
- CVE-2018-16470HIGH
Rack vulnerable to Denial of Service
- CVE-2022-30122HIGH
Denial of Service Vulnerability in Rack Multipart Parsing
- CVE-2020-8184HIGH
Rack allows Percent-encoded cookies to overwrite existing prefixed cookie names
- CVE-2026-22860HIGH
Rack has a Directory Traversal via Rack:Directory
- CVE-2025-61770HIGH
Rack's unbounded multipart preamble buffering enables DoS (memory exhaustion)
- CVE-2019-16782MEDIUM
Possible Information Leak / Session Hijack Vulnerability in Rack