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.

Severity (CVSS 4.0)6.6Medium
Exploit odds (30 days)0.6%top 51.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:13ruby-rack3.1.16-0.1DEBIAN-CVE-2025-49007
Debian:14ruby-rack3.1.16-0.1DEBIAN-CVE-2025-49007
RubyGemsrack3.1.16GHSA-47m2-26rw-j2jw
Ubuntu:22.04:LTSruby-rackno fix listedUBUNTU-CVE-2025-49007
Ubuntu:24.04:LTSruby-rackno fix listedUBUNTU-CVE-2025-49007

Affected products (as reported)

VendorProductVersions
rack rack >= 3.1.0, < 3.1.16

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

References