Rack ReDoS Vulnerability in HTTP Accept Headers Parsing
Published 3 Jul 2024 · Updated 4 Feb 2026
Is your project on an affected rack?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- >=3.1.0 <3.1.5
- Fixed in
- 3.1.5
bundle update --conservative rack # Gemfile: '>= 3.1.5'Details
Summary
A Regular Expression Denial of Service (ReDoS) vulnerability exists in the Rack::Request::Helpers module when parsing HTTP Accept headers. This vulnerability can be exploited by an attacker sending specially crafted Accept-Encoding or Accept-Language headers, causing the server to spend excessive time processing the request and leading to a Denial of Service (DoS).
Details
The fix for https://github.com/rack/rack/security/advisories/GHSA-54rr-7fvw-6x8f was not applied to the main branch and thus while the issue was fixed for the Rack v3.0 release series, it was not fixed in the v3.1 release series until v3.1.5.
Is GHSA-cj83-2ww7-mvq7 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected rack, and gives you the command that fixes it.
More advisories for rack
- HighCVE-2026-125111Rack: Multipart parsing allows DoS via unbounded scan buffer growth · 10 Nov 2026
- LowCVE-2026-125108Rack: Multipart boundary ambiguity guard in Rack::Multipart::Parser can be bypassed with a quoted boundary value, allowing WAF bypass · 10 Nov 2026
- MediumCVE-2026-125109Rack: Rack::Request#host_with_port (and #base_url / #url) return the raw invalid Host header — incomplete fix of CVE-2026-34835 · 10 Nov 2026
- MediumCVE-2026-125110Rack: Rack::Static header_rules bypass via dot-segment normalization mismatch · 10 Nov 2026
- MediumCVE-2026-34835Rack::Request accepts invalid Host characters, enabling host allowlist bypass · 2 Apr 2026
- MediumCVE-2026-34831Rack has Content-Length mismatch in Rack::Files error responses · 2 Apr 2026
References
- Linkgithub.com/rack/rack/security/advisories/GHSA-54rr-7fvw-6x8f
- Linkgithub.com/rack/rack/security/advisories/GHSA-cj83-2ww7-mvq7
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-39316
- Linkgithub.com/rack/rack/commit/412c980450ca729ee37f90a2661f166a9665e058
- Linkadvisory.dw1.io/61
- Packagegithub.com/rack/rack
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2024-39316.yml
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.