CVE-2024-54133: Possible Content Security Policy bypass in Action Dispatch

Published Dec 10, 2024
·
Updated

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

8 affected componentsFixes available
rubygems/actionpack>=8.0.0<8.0.0.1
8.0.0.1
rubygems/actionpack>=7.2.0<7.2.2.1
7.2.2.1
rubygems/actionpack>=7.1.0<7.1.5.1
7.1.5.1
rubygems/actionpack>=5.2.0<7.0.8.7
7.0.8.7
debian/rails<2:6.1.7.10+dfsg-1~deb12u1
2:6.1.7.10+dfsg-1~deb12u1
debian/rails<2:7.2.2.1+dfsg-1
2:7.2.2.1+dfsg-1
debian/rails<2:7.2.2.1+dfsg-1
2:7.2.2.1+dfsg-1
debian/rails
2:6.1.7.10+dfsg-1~deb12u22:6.1.7.10+dfsg-1~deb12u32:7.2.2.2+dfsg-2~deb13u12:7.2.2.2+dfsg-2~deb13u22:7.2.4+dfsg-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rubygems/actionpack to a version that resolves this vulnerability.

    Fixed in 8.0.0.1
  2. Upgrade

    Upgrade rubygems/actionpack to a version that resolves this vulnerability.

    Fixed in 7.2.2.1
  3. Upgrade

    Upgrade rubygems/actionpack to a version that resolves this vulnerability.

    Fixed in 7.1.5.1
  4. Upgrade

    Upgrade rubygems/actionpack to a version that resolves this vulnerability.

    Fixed in 7.0.8.7
  5. Upgrade

    Upgrade debian/rails to a version that resolves this vulnerability.

    Fixed in 2:6.1.7.10+dfsg-1~deb12u1
  6. Upgrade

    Upgrade debian/rails to a version that resolves this vulnerability.

    Fixed in 2:7.2.2.1+dfsg-1
  7. Upgrade

    Upgrade debian/rails to 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
  8. Upgrade

    Upgrade Action Pack to a version that resolves this vulnerability.

    Fixed in 7.0.8.7
  9. Upgrade

    Upgrade Action Pack to a version that resolves this vulnerability.

    Fixed in 7.1.5.1
  10. Upgrade

    Upgrade Action Pack to a version that resolves this vulnerability.

    Fixed in 7.2.2.1
  11. Upgrade

    Upgrade Action Pack to a version that resolves this vulnerability.

    Fixed in 8.0.0.1
  12. 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

Dec 10, 2024
Advisory Published
via GitHub·10:42 PM
CVE Published
via MITRE·10:52 PM
Data Sourced
via MITRE·10:52 PM
DescriptionWeakness
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·11:15 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

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.

2

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.

3

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.

4

What type of vulnerability is CVE-2024-54133?

CVE-2024-54133 is identified as a Cross Site Scripting (XSS) vulnerability.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203