# CVE-2024-25126: Rack ReDos in content type parsing (2nd degree polynomial)

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- 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): 35.4%, higher than 98% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2024-02-28T22:57:26.000Z
- Modified: 2026-09-10T03:50:05.157Z
- Also known as: GHSA-22f2-v57c-j9cx
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Rack is a modular Ruby web server interface. Carefully crafted content type headers can cause Rack’s media type parser to take much longer than expected, leading to a possible denial of service vulnerability (ReDos 2nd degree polynomial). This vulnerability is patched in 3.0.9.1 and 2.2.8.1.

(As written by CVE List.)

## Affected

- rack rack: >= 3.0.0, < 3.0.9.1; >= 0.4, < 2.2.8.1; from 0.4 before 2.2.8.1; from 3.0.0 before 3.0.9.1
- rack_project rack: from 3.0.0 before 3.0.9.1; from 0.4 before 2.2.8.1
- rack (RubyGems): from 3.0.0 before 3.0.9.1; from 0.4 before 2.2.8.1
- debian debian_linux: 10.0

## Every score

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

## References

- <https://github.com/rack/rack/security/advisories/GHSA-22f2-v57c-j9cx> (exploit, vendor-advisory, web)
- <https://discuss.rubyonrails.org/t/denial-of-service-vulnerability-in-rack-content-type-parsing/84941> (exploit, vendor-advisory, web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2024-25126.yml> (exploit, third-party-advisory, web)
- <https://github.com/rack/rack/commit/6efb2ceea003c4b195815a614e00438cbd543462> (patch, web)
- <https://github.com/rack/rack/commit/d9c163a443b8cadf4711d84bd2c58cb9ef89cf49> (patch, web)
- <https://lists.debian.org/debian-lts-announce/2024/04/msg00022.html> (mailing-list, web)
- <https://security.netapp.com/advisory/ntap-20240510-0005/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-25126> (advisory)
- <https://github.com/rack/rack> (package)
- <https://security.netapp.com/advisory/ntap-20240510-0005> (web)

## Sources

- CVE List: [CVE-2024-25126](https://www.cve.org/CVERecord?id=CVE-2024-25126), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-22f2-v57c-j9cx](https://github.com/advisories/GHSA-22f2-v57c-j9cx), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-25126](https://nvd.nist.gov/vuln/detail/CVE-2024-25126), Public domain, modified 2026-06-17

---

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