← back
CVE-2025-49007

ReDoS Vulnerability in Rack::Multipart handle_mime_head

CVSS 6.6 MEDIUMEPSS 0.5%CWE-770
In short

Rack's Content-Disposition header parser can be made to take excessive time with specially crafted input, allowing attackers to cause a denial of service against web applications. This affects virtually all Rails applications that handle file uploads.

Technical detail

A ReDoS vulnerability in Rack's Content-Disposition header parsing (handle_mime_head) allows remote attackers to cause prolonged processing times via malicious multipart request headers. The vulnerability exists in versions 3.1.0 through 3.1.15 and requires only the ability to send HTTP requests; exploitation results in resource exhaustion and application unavailability.

Summary generated and translated by AI from the 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.
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
Affected products
rack · rack

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →