Inefficient regular expression complexity in Rack - CVE-2025-49007
Published: June 5, 2025 / Updated: November 5, 2026
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.