CVE-2024-26141 Possible DoS Vulnerability with Range Header in Rack

Medium 5.8 Published Updated

Attackers can cause denial of service by sending crafted Range headers to Rack-based applications, leading to unexpectedly large responses.

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-26141?

CVE-2024-26141 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 Range headers can cause a server to respond with an unexpectedly large response. Responding with such large responses could lead to a denial of service issue. Vulnerable applications will use the `Rack::File` middleware or the `Rack::Utils.byte_ranges` methods (this includes Rails applications). The vulnerability is fixed in 3.0.9.1 and 2.2.8.1.

Weakness: CWE-400

Which versions are affected by CVE-2024-26141?

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

PackageAffectedFixed in
rack RubyGemsFrom 1.3.02.2.8.1
rack RubyGemsFrom 1.3.02.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-26141?

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-26141 being exploited?

There is no known exploitation of CVE-2024-26141 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2024-26141, GHSA-xj5v-6v4g-jfw6, UBUNTU-CVE-2024-26141.

Is CVE-2024-26141 in your software?

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

Check your SBOMs for free