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

Medium 5.3 Published Updated

Attackers can cause denial of service in Rack by sending crafted content type headers that trigger excessive parsing time.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-25126?

CVE-2024-25126 is a medium-severity denial of service vulnerability in Debian Debian Linux, published on 28 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-1333

Which versions are affected by CVE-2024-25126?

4 open source packages ship an affected version, including rack. It affects 2 products.

PackageAffectedFixed in
rack RubyGemsFrom 0.42.2.8.1
rack RubyGemsFrom 0.42.2.8.1
rack RubyGemsFrom 3.0.03.0.9.1
rack RubyGemsFrom 3.0.03.0.9.1

Products include Debian Debian Linux, Rack Rack.

How do I fix CVE-2024-25126?

Upgrade rack to a fixed version for your release line: 2.2.8.1 or 3.0.9.1.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-25126 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-25126 exists.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2024-25126, GHSA-22f2-v57c-j9cx, UBUNTU-CVE-2024-25126.

Is CVE-2024-25126 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free