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

6.6 CVSS

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.

Classification

CVE ID: CVE-2025-49007

CVSS Base Severity: MEDIUM

CVSS Base Score: 6.6

CVSS 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

Problem Types

CWE-770: Allocation of Resources Without Limits or Throttling

Affected Products

Vendor: rack

Product: rack

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.05% (probability of being exploited)

EPSS Percentile: 13.76% (scored less or equal to compared to others)

EPSS Date: 2025-06-07 (when was this score calculated)

References

https://nvd.nist.gov/vuln/detail/CVE-2025-49007
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

Timeline