CVE-2024-39316: Rack - Regular Expression Denial of Service
- Cve: CVE-2024-39316
- Name: Rack - Regular Expression Denial of Service
- Description: 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.
- Impact: Attackers can cause server unresponsiveness or crash by exploiting the ReDoS vulnerability, leading to service disruption.
- Remediation: Upgrade to Rack version 3.1.5 or later.
- Vulnerability type: misconfiguration
- Vulnerability impact: denial_of_service
- Requirement type: user_interaction
- Requirements: Attacker needs to send specially crafted headers
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.00856
- Epss percentile: 0.59135
- Assignee: [email protected]
- Published at: 2024-07-02T16:15:04Z
- Age in days: 875
- Modified at: 2026-06-17T07:41:42Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-39316
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
Cwe
| Id | Name |
|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity |
Hackerone
- Reports: 1
- Rank: 5211
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/rack/rack/commit/412c980450ca729ee37f90a2661f166a9665e058 | nvd | Patch |
| https://github.com/rack/rack/security/advisories/GHSA-cj83-2ww7-mvq7 | nvd | Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| rack:rack | >= 3.1.0, < 3.1.5 | no | nvd | /v1/products/rack/rack |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| rack/rack | commit, fix, package, security_advisory | yes | /v1/repositories/rack/rack |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Hackerone reports: 1
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts