Skip to content
OpenAdvisories
Medium · 6.6 CVE-2025-49007 EUVD-2025-16936GHSA-47m2-26rw-j2jw

ReDoS Vulnerability in Rack::Multipart handle_mime_head

Published Jun 4, 2025 · Updated Jun 5, 2025 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
rack rack >= 3.1.0, < 3.1.16 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ruby-rack 3.1.16-0.1 —
Debian 13 ruby-rack 3.1.16-0.1 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling logstash-8-with-output-opensearch 8.18.2-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems rack >= 3.1.0, < 3.1.16 3.1.16 GHSA-47m2-26rw-j2jw

References