CVE-2024-54133 json
Possible Content Security Policy bypass in Action Dispatch
published 2024-12-10 22 mo ago modified 2026-06-17 4 mo ago also BIT-rails-2024-54133 , EUVD-2024-3509 , GHSA-vfm5-rmrh-j26v
- cvss
- 2.3
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 63%
- public exploits
- 0
- none known
Summary
Action Pack is a framework for handling and responding to web requests. There is a possible Cross Site Scripting (XSS) vulnerability in the `content_security_policy` 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.
Patch / fix
- rubygems actionpack 7.0.8.7, 7.1.5.1, 7.2.2.1, 8.0.0.1
- bitnami rails 7.0.9, 7.1.4, 7.2.2-2-0, 8.0.1
- rubyonrails rails 7.0.8.7, 7.1.5.1, 7.2.2.1, 8.0.0.1
- rubyonrails ruby_on_rails 7.0.8.7, 7.1.5.1, 7.2.2.1, 8.0.0.1
- actionpack_project actionpack 7.0.8.7, 7.1.5.1, 7.2.2.1, 8.0.0.1
- rubyonrails actionpack 7.0.8.7, 7.1.5.1, 7.2.2.1, 8.0.0.1
- rails Debian 12 2:6.1.7.10+dfsg-1~deb12u1
- rails Debian 14, Debian 13 2:7.2.2.1+dfsg-1
debian advisories DEBIAN-CVE-2024-54133
- rubygem-actioncable-8.0 openSUSE Tumbleweed 8.0.3-1.3
- rubygem-actionmailbox-8.0 openSUSE Tumbleweed 8.0.3-1.3
- rubygem-actionmailer-8.0 openSUSE Tumbleweed 8.0.3-1.3
- rubygem-actionpack-8.0 openSUSE Tumbleweed 8.0.3-1.3
- rubygem-actiontext-8.0 openSUSE Tumbleweed 8.0.3-1.3
- rubygem-actionview-8.0 openSUSE Tumbleweed 8.0.3-1.3
- rubygem-activejob-8.0 openSUSE Tumbleweed 8.0.3-1.3
- rubygem-activemodel-8.0 openSUSE Tumbleweed 8.0.3-1.3
opensuse advisories openSUSE-SU-2026:10335-1openSUSE-SU-2026:10336-1openSUSE-SU-2026:10337-1openSUSE-SU-2026:10338-1openSUSE-SU-2026:10339-1openSUSE-SU-2026:10340-1
- github.com/rails/rails@2e3f41e commit
- github.com/rails/rails@3da2479 commit
- github.com/rails/rails@5558e72 commit
- github.com/rails/rails@cb16a3b commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-54133 updated cvss 4.3
actionpack: Possible Content Security Policy bypass in Action Dispatch
-
Red Hat 3scale API Management Platform 2 3scale-amp2/zync-rhel8, 3scale-amp2/system-rhel7 Red Hat Satellite 6 rubygem-actionpackaffected: workaround, no fix available “Applications can avoid setting CSP headers dynamically from untrusted input or can validate/sanitize that input.”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 22 mo ago
Exploit prediction
1.00% chance of exploitation in the next 30 days, higher than 63% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 2.3 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| CNA | 4.0 | 2.3 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | actionpack | >=5.2.0, <7.0.8.7 >=7.1.0, <7.1.5.1 >=7.2.0, <7.2.2.1 >=8.0.0, <8.0.0.1 |
7.0.8.7 7.1.5.1 7.2.2.1 8.0.0.1 |
| bitnami | rails | >=5.2.0, <7.0.9 >=7.1.0, <7.1.4 >=7.2.0, <7.2.2-2-0 >=8.0.0, <8.0.1 |
7.0.9 7.1.4 7.2.2-2-0 8.0.1 |
Affected products
- rails rails
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
- Technology feeds
References
-
github.com
/rails/rails/commit/2e3f41e4538b9ca1044357f6644f037bbb7c6c49
web
-
github.com
/rails/rails/commit/3da2479cfe1e00177114b17e496213c40d286b3a
web
-
github.com
/rails/rails/commit/5558e72f22fc69c1c407b31ac5fb3b4ce087b542
web
-
github.com
/rails/rails/commit/cb16a3bb515b5d769f73926d9757270ace691f1d
web
-
github.com
/rails/rails/security/advisories/GHSA-vfm5-rmrh-j26v
web, advisory
-
security.netapp.com
/advisory/ntap-20250306-0010/
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-54133
advisory, web
-
github.com
/rails/rails
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2024-54133.yml
web
-
security.netapp.com
/advisory/ntap-20250306-0010
web
Sources
- CVE List CVE-2024-54133
- GitHub Advisory GHSA-vfm5-rmrh-j26v
- NVD CVE-2024-54133
- OSV BIT-rails-2024-54133
- Maintainer advisory GHSA-vfm5-rmrh-j26v
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of rails/rails published their own advisory on GitHub. Reviewed sources take precedence over it.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.