Vulnerability in Rack
CVE-2024-26146
Rack is a modular Ruby web server interface. Carefully crafted headers can cause header parsing in Rack to take longer than expected resulting in a possible denial of service issue. Accept and Forwarded headers are impacted. Ruby 3.2 has mitigations for this problem, so Rack applications using Ruby 3.2 or newer are unaffected. This vulnerability is fixed in 2.0.9.4, 2.1.4.4, 2.2.8.1, and 3.0.9.1.
Vulnerability class: ReDoS (Regular Expression Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
EPSS exploit prediction
EPSS 0.020, 81.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Rack — versions >= 3.0.0, < 3.0.9.1, >= 2.2.0, < 2.2.8.1, >= 2.1.0, < 2.1.4.4
- Debian Linux — versions 10.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (fkie-cad/nvd-json-data-feeds). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/rack/rack/security/advisories/GHSA-54rr-7fvw-6x8f (Vendor Advisory)
- https://github.com/rack/rack/commit/30b8e39a578b25d4bdcc082c1c52c6f164b59716 (Patch)
- https://github.com/rack/rack/commit/6c5d90bdcec0949f7ba06db62fb740dab394b582 (Patch)
- https://github.com/rack/rack/commit/a227cd793778c7c3a827d32808058571569cda6f (Patch)
- https://github.com/rack/rack/commit/e4c117749ba24a66f8ec5a08eddf68deeb425ccd (Patch)
- https://discuss.rubyonrails.org/t/possible-denial-of-service-vulnerability-in-rack-header-parsing/84942 (Vendor Advisory)
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2024-26146.yml (Third Party Advisory)
- lists.debian.org/debian-lts-announce/2024/04/msg00022.html (Mailing List)
- security.netapp.com/advisory/ntap-20240510-0006/ (Third Party Advisory)