5.8medium
Possible DoS Vulnerability with Range Header in Rack
- Severity
- 5.8medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.61% (higher than 76% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-xj5v-6v4g-jfw6
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| rack rack | >= 3.0.0, < 3.0.9.1, >= 1.3.0, < 2.2.8.1, from 1.3.0 before 2.2.8.1, from 3.0.0 before 3.0.9.1 | CVE List, NVD |
| rack_project rack | from 3.0.0 before 3.0.9.1, from 1.3.0 before 2.2.8.1 | CVE List |
| rack (RubyGems) | from 3.0.0 before 3.0.9.1, from 1.3.0 before 2.2.8.1 | GitHub Advisory Database |
| debian debian_linux | 10.0 | NVD |
All scores
| GitHub_M | 5.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L |
| GitHub | low rating | |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Possible DoS Vulnerability with Range Header in Rack
There is a possible DoS vulnerability relating to the Range request header in Rack. This vulnerability has been assigned the CVE identifier CVE-2024-26141.
Versions Affected: >= 1.3.0. Not affected: < 1.3.0 Fixed Versions: 3.0.9.1, 2.2.8.1
Impact
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).
Releases
The fixed releases are available at the normal locations.
Workarounds
There are no feasible workarounds for this issue.
Patches
To aid users who aren't able to upgrade immediately we have provided patches for the two supported release series. They are in git-am format and consist of a single changeset.
- 3-0-range.patch - Patch for 3.0 series
- 2-2-range.patch - Patch for 2.2 series
Credits
Thank you ooooooo_q for the report and patch
NVD (es)
Rack es una interfaz modular de servidor web Ruby. Los encabezados de rango cuidadosamente elaborados pueden hacer que un servidor responda con una respuesta inesperadamente grande. Responder con respuestas tan amplias podría dar lugar a un problema de denegación de servicio. Las aplicaciones vulnerables utilizarán el middleware `Rack::File` o los métodos `Rack::Utils.byte_ranges` (esto incluye aplicaciones Rails). La vulnerabilidad se solucionó en 3.0.9.1 y 2.2.8.1.
References
| https://github.com/rack/rack/security/advisories/GHSA-xj5v-6v4g-jfw6 | exploit, vendor-advisory, web | |
| https://github.com/rack/rack/commit/4849132bef471adb21131980df745f4bb84de2d9 | patch, web | |
| https://github.com/rack/rack/commit/62457686b26d33a15a254c7768c2076e8e02b48b | patch, web | |
| https://discuss.rubyonrails.org/t/possible-dos-vulnerability-with-range-header-in-rack/84944 | exploit, vendor-advisory, web | |
| https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2024-26141.yml | exploit, third-party-advisory, web | |
| https://lists.debian.org/debian-lts-announce/2024/04/msg00022.html | mailing-list | |
| https://security.netapp.com/advisory/ntap-20240510-0007/ | third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-26141 | advisory | |
| https://github.com/rack/rack | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-26141 changed 2025-02-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xj5v-6v4g-jfw6 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-26141 changed 2026-06-17 | Public domain |