CVE-2024-41128: Action Dispatch has possible ReDoS vulnerability in query parameter filtering
Action Pack is a framework for handling and responding to web requests. Starting in version 3.1.0 and prior to versions 6.1.7.9, 7.0.8.5, 7.1.4.1, and 7.2.1.1, there is a possible ReDoS vulnerability in the query parameter filtering routines of Action Dispatch. Carefully crafted query parameters can cause query parameter filtering to take an unexpected amount of time, possibly resulting in a DoS vulnerability. All users running an affected release should either upgrade to version 6.1.7.9, 7.0.8.5, 7.1.4.1, or 7.2.1.1 or apply the relevant patch immediately. One may use Ruby 3.2 as a workaround. Ruby 3.2 has mitigations for this problem, so Rails applications using Ruby 3.2 or newer are unaffected. Rails 8.0.0.beta1 depends on Ruby 3.2 or greater so is unaffected.
Other sources
There is a possible ReDoS vulnerability in the query parameter filtering routines of Action Dispatch. This vulnerability has been assigned the CVE identifier CVE-2024-41128.
Impact ------
Carefully crafted query parameters can cause query parameter filtering to take an unexpected amount of time, possibly resulting in a DoS vulnerability. All users running an affected release should either upgrade or apply the relevant patch immediately.
Ruby 3.2 has mitigations for this problem, so Rails applications using Ruby 3.2 or newer are unaffected. Rails 8.0.0.beta1 depends on Ruby 3.2 or greater so is unaffected.
Releases -------- The fixed releases are available at the normal locations.
Workarounds ----------- Users on Ruby 3.2 are unaffected by this issue.
Credits -------
Thanks to scyoon for the report and patches!
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rubygems/actionpackto a version that resolves this vulnerability.Fixed in 7.2.1.1 - Upgrade
Upgrade
rubygems/actionpackto a version that resolves this vulnerability.Fixed in 7.1.4.1 - Upgrade
Upgrade
rubygems/actionpackto a version that resolves this vulnerability.Fixed in 7.0.8.5 - Upgrade
Upgrade
rubygems/actionpackto a version that resolves this vulnerability.Fixed in 6.1.7.9 - Upgrade
Upgrade
debian/railsto a version that resolves this vulnerability.Fixed in 2:6.1.7.10+dfsg-1~deb12u1 - Upgrade
Upgrade
debian/railsto a version that resolves this vulnerability.Fixed in 2:7.2.2.1+dfsg-1 - Upgrade
Upgrade
debian/railsto a version that resolves this vulnerability.Fixed in 2:6.1.7.10+dfsg-1~deb12u2Fixed in 2:6.1.7.10+dfsg-1~deb12u3Fixed in 2:7.2.2.2+dfsg-2~deb13u1Fixed in 2:7.2.2.2+dfsg-2~deb13u2Fixed in 2:7.2.4+dfsg-2 - Upgrade
Upgrade
Action Pack / Action Dispatchto a version that resolves this vulnerability.Fixed in 6.1.7.9 - Upgrade
Upgrade
Action Pack / Action Dispatchto a version that resolves this vulnerability.Fixed in 7.0.8.5 - Upgrade
Upgrade
Action Pack / Action Dispatchto a version that resolves this vulnerability.Fixed in 7.1.4.1 - Upgrade
Upgrade
Action Pack / Action Dispatchto a version that resolves this vulnerability.Fixed in 7.2.1.1 - Upgrade
Upgrade
Rubyto a version that resolves this vulnerability.Fixed in 3.2
Event History
Frequently Asked Questions
What is the severity of CVE-2024-41128?
CVE-2024-41128 is classified as a ReDoS vulnerability, which can lead to significant denial of service conditions.
How do I fix CVE-2024-41128?
To mitigate CVE-2024-41128, upgrade to Action Pack versions 6.1.7.9, 7.0.8.5, 7.1.4.1, or 7.2.1.1.
Which versions of Action Pack are affected by CVE-2024-41128?
CVE-2024-41128 affects Action Pack versions from 3.1.0 up to but not including 6.1.7.9, 7.0.8.5, 7.1.4.1, and 7.2.1.1.
What kind of attacks can CVE-2024-41128 enable?
CVE-2024-41128 allows attackers to exploit a ReDoS vulnerability to potentially disrupt service by consuming excessive server resources.
How can I identify if my application is vulnerable to CVE-2024-41128?
To determine if your application is vulnerable to CVE-2024-41128, check the version of Action Pack being used and whether it falls within the affected range.