Inefficient regular expression complexity in Rack - CVE-2025-49007

 

Inefficient regular expression complexity in Rack - CVE-2025-49007

Published: June 5, 2025 / Updated: November 5, 2026


Vulnerability identifier: #VU159494
CSH Severity: Low
CVSS v4: 0 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-49007
CWE-ID: CWE-1333
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows remote attackers to cause excessive processing time and potentially deny service to applications that parse multipart POST requests using Rack.

The vulnerability exists due to inefficient regular-expression processing of carefully crafted Content-Disposition headers in Rack's multipart parsing component, identified as Rack::Multipart handle_mime_head. A remote attacker can submit a multipart POST request containing a crafted Content-Disposition header to an application that uses Rack to parse multipart requests, causing header parsing to take an unexpectedly long time.

Content-Disposition headers are typically processed during multipart parsing. The affected application population includes virtually all Rails applications because they use Rack to parse multipart POST requests.


Affected software

Rack

How to mitigate CVE-2025-49007

Install security update from vendor's website.

Rack - update to 3.1.16

External References

Related Security Bulletins