Rack ReDoS Vulnerability in HTTP Accept Headers Parsing
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-1333.
Summary
Rack is a modular Ruby web server interface. Starting in version 3.1.0 and prior to version 3.1.5, 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). The fix for CVE-2024-26146 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. Users of versions on the 3.1 branch should upgrade to version 3.1.5 to receive the fix.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| rack | rack | 3.1.0 to before 3.1.5 | 3.1.5 | Patch available | CNA |
| — | rack (RubyGems) | 3.1.0 to before 3.1.5 | 3.1.5 | Patch available | GHSA-cj83-2ww7-mvq7 |
- rack Vendorrack Affected 3.1.0 to before 3.1.5 Fixed in 3.1.5 Patch available CNA
- rack (RubyGems) Vendor— Affected 3.1.0 to before 3.1.5 Fixed in 3.1.5 Patch available GHSA-cj83-2ww7-mvq7
Remediation
- Fix · CNA rack (rack) Fixed in 3.1.5
- Fix · GHSA-cj83-2ww7-mvq7 rack (RubyGems) Fixed in 3.1.5 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-39316
- 2026-10-03 Alias added: GHSA-cj83-2ww7-mvq7
References
Advisory 2
More Rack vulnerabilities
- TI-2024-16580 Rack ReDos in content type parsing (2nd degree polynomial) CVSS 3.1HIGH 7.5
- TI-2024-17236 Possible Denial of Service Vulnerability in Rack Header Parsing CVSS 3.1HIGH 7.5
- TI-2024-17231 Possible DoS Vulnerability with Range Header in Rack CVSS 3.1HIGH 7.5
- TI-2023-12254 Uncontrolled resource consumption in https://github.com/rack/rack CVSS 3.1HIGH 7.5
- TI-2025-38165 Rack's multipart parser buffers unbounded per-part headers, enabling DoS (memory exhaustion) CVSS 3.1HIGH 7.5
- TI-2025-38163 Rack's unbounded multipart preamble buffering enables DoS (memory exhaustion) CVSS 3.1HIGH 7.5
Sources
- CVE-2024-39316 · CVE Program
- CVE-2024-39316 · NVD
- FIRST EPSS
- GHSA-cj83-2ww7-mvq7 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences