CVE-2024-54133: Possible Content Security Policy bypass in Action Dispatch
Action Pack is a framework for handling and responding to web requests. There is a possible Cross Site Scripting (XSS) vulnerability in the contentsecuritypolicy helper starting in version 5.2.0 of Action Pack and prior to versions 7.0.8.7, 7.1.5.1, 7.2.2.1, and 8.0.0.1. Applications which set Content-Security-Policy (CSP) headers dynamically from untrusted user input may be vulnerable to carefully crafted inputs being able to inject new directives into the CSP. This could lead to a bypass of the CSP and its protection against XSS and other attacks. Versions 7.0.8.7, 7.1.5.1, 7.2.2.1, and 8.0.0.1 contain a fix. As a workaround, applications can avoid setting CSP headers dynamically from untrusted input, or can validate/sanitize that input.
Other sources
There is a possible Cross Site Scripting (XSS) vulnerability in the contentsecuritypolicy helper in Action Pack.
Impact ------ Applications which set Content-Security-Policy (CSP) headers dynamically from untrusted user input may be vulnerable to carefully crafted inputs being able to inject new directives into the CSP. This could lead to a bypass of the CSP and its protection against XSS and other attacks.
Releases -------- The fixed releases are available at the normal locations.
Workarounds ----------- Applications can avoid setting CSP headers dynamically from untrusted input, or can validate/sanitize that input.
Credits ------- Thanks to ryotak for the report!
— GitHub
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rubygems/actionpackto a version that resolves this vulnerability.Fixed in 8.0.0.1 - Upgrade
Upgrade
rubygems/actionpackto a version that resolves this vulnerability.Fixed in 7.2.2.1 - Upgrade
Upgrade
rubygems/actionpackto a version that resolves this vulnerability.Fixed in 7.1.5.1 - Upgrade
Upgrade
rubygems/actionpackto a version that resolves this vulnerability.Fixed in 7.0.8.7 - 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 Packto a version that resolves this vulnerability.Fixed in 7.0.8.7 - Upgrade
Upgrade
Action Packto a version that resolves this vulnerability.Fixed in 7.1.5.1 - Upgrade
Upgrade
Action Packto a version that resolves this vulnerability.Fixed in 7.2.2.1 - Upgrade
Upgrade
Action Packto a version that resolves this vulnerability.Fixed in 8.0.0.1 - Compensating control
Avoid setting Content-Security-Policy headers dynamically from untrusted input, or validate and sanitize that input before using it to construct the headers.
Event History
Frequently Asked Questions
What is the severity of CVE-2024-54133?
CVE-2024-54133 has been classified as a Cross Site Scripting (XSS) vulnerability with potential security implications.
How do I fix CVE-2024-54133?
To mitigate CVE-2024-54133, update Action Pack to version 8.0.0.1 or to one of the patched versions: 7.2.2.1, 7.1.5.1, or 7.0.8.7.
Which versions of Action Pack are affected by CVE-2024-54133?
CVE-2024-54133 affects Action Pack versions starting from 5.2.0 up until the specified patched versions.
What type of vulnerability is CVE-2024-54133?
CVE-2024-54133 is identified as a Cross Site Scripting (XSS) vulnerability.
Who should be concerned about CVE-2024-54133?
Developers and system administrators using vulnerable versions of Action Pack should be concerned about CVE-2024-54133.