Advisory

GHSA-47m2-26rw-j2jw

Also known as: CVE-2025-49007

Summary

ReDoS Vulnerability in Rack::Multipart handle_mime_head

Details

Summary
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.

Details

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.

Credits

Thanks to scyoon for reporting this to the Rails security team

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-06-05 05:21 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

rack

RubyGems · All systems

Affected

  • introduced 3.1.0, fixed 3.1.16 (ecosystem)

Fixed versions

3.1.16

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences