# CVE-2024-39316: Rack ReDoS Vulnerability in HTTP Accept Headers Parsing

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.86%, higher than 59% of CVEs (2026-12-01)
- Published: 2024-07-02T15:57:39.107Z
- Modified: 2026-06-17T07:41:42.080Z
- Also known as: GHSA-cj83-2ww7-mvq7
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.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.

(As written by CVE List.)

## Affected

- rack rack: >= 3.1.0, < 3.1.5; from 3.1.0 before 3.1.5
- rack (RubyGems): from 3.1.0 before 3.1.5

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/rack/rack/security/advisories/GHSA-cj83-2ww7-mvq7> (vendor-advisory, web)
- <https://github.com/rack/rack/security/advisories/GHSA-54rr-7fvw-6x8f> (not-applicable, web)
- <https://github.com/rack/rack/commit/412c980450ca729ee37f90a2661f166a9665e058> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-39316> (advisory)
- <https://advisory.dw1.io/61> (web)
- <https://github.com/rack/rack> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2024-39316.yml> (web)

## Sources

- CVE List: [CVE-2024-39316](https://www.cve.org/CVERecord?id=CVE-2024-39316), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-cj83-2ww7-mvq7](https://github.com/advisories/GHSA-cj83-2ww7-mvq7), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2024-39316](https://nvd.nist.gov/vuln/detail/CVE-2024-39316), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-39316 · Whole record: https://cve.day/CVE-2024-39316.json · Rebuilt by cve.day 2026-11-25T22:58:42.471Z
