← back
CVE-2024-26141

Possible DoS Vulnerability with Range Header in Rack

CVSS 5.8 MEDIUMEPSS 1.6%CWE-400
In short

A flaw in Rack's Range header handling allows attackers to craft special requests that trick the server into sending extremely large responses, overwhelming it and making it unavailable to legitimate users.

Technical detail

The vulnerability exists in Rack::File middleware and Rack::Utils.byte_ranges methods where maliciously crafted Range headers bypass proper validation, causing excessive memory allocation and network bandwidth consumption. This affects Rails applications and other Rack-based servers, leading to denial of service when processing the unexpectedly large responses.

Summary generated and translated by AI from the 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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L
Affected products
rack · rack

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →