PT-2024-28440 · Rack · Rack
Dwisiswant0
·
Published
2024-02-28
·
Updated
2025-10-10
·
CVE-2024-39316
CVSS v3.1
6.5
Medium
| Vector | AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Rack versions 3.1.0 through 3.1.4
Rack versions prior to 2.0.9.4
Rack versions prior to 2.1.4.4
Rack versions prior to 2.2.8.1
Rack versions prior to 3.0.9.1
Description
A Regular Expression Denial of Service (ReDoS) vulnerability exists in the
Rack::Request::Helpers module when parsing HTTP Accept headers. This vulnerability can be exploited by an attacker sending specially crafted Accept-Encoding or Accept-Language headers, causing the server to spend excessive time processing the request and leading to a Denial of Service (DoS).Recommendations
For Rack versions 3.1.0 through 3.1.4, upgrade to version 3.1.5 to receive the fix.
For Rack versions prior to 2.0.9.4, apply the 2-0-header-redos.patch or upgrade to version 2.0.9.4.
For Rack versions prior to 2.1.4.4, apply the 2-1-header-redos.patch or upgrade to version 2.1.4.4.
For Rack versions prior to 2.2.8.1, apply the 2-2-header-redos.patch or upgrade to version 2.2.8.1.
For Rack versions prior to 3.0.9.1, apply the 3-0-header-redos.patch or upgrade to version 3.0.9.1.
As a temporary workaround, consider restricting access to the
Rack::Request::Helpers module until a patch is available.
Avoid using the Accept-Encoding and Accept-Language headers in the affected API endpoints until the issue is resolved.Exploit
Fix
DoS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Rack