cve.bz

CVE-2024-54133 rails rails: Cross-site Scripting

2.3 lowEPSS 1.0%Fix available

Low (2.3) in rails rails. EPSS 1.0% estimated probability of exploitation activity in the next 30 days. Fixed in actionpack 7.0.8.7, 7.1.5.1, 7.2.2.1.

On this page
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.

Severity

CVSS 4.0

2.3 low
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
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 64th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-12-11. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-54133 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-54133?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-54133?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-54133 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
rails>= 5.2.0, < 7.0.8.7
rails>= 7.1.0, < 7.1.5.1
rails>= 7.2.0, < 7.2.2.1
rails>= 8.0.0, < 8.0.0.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-vfm5-rmrh-j26vRubyGemsactionpack>=5.2.0 <7.0.8.77.0.8.7
GHSA-vfm5-rmrh-j26vRubyGemsactionpack>=7.1.0 <7.1.5.17.1.5.1
GHSA-vfm5-rmrh-j26vRubyGemsactionpack>=7.2.0 <7.2.2.17.2.2.1
GHSA-vfm5-rmrh-j26vRubyGemsactionpack>=8.0.0 <8.0.0.18.0.0.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11rails2:6.0.3.7+dfsg-2+deb11u3DLA-4383-1
Debian12rails2:6.1.7.10+dfsg-1~deb12u1DEBIAN-CVE-2024-54133 DSA-5881-1
Debian13, 14rails2:7.2.2.1+dfsg-1DEBIAN-CVE-2024-54133
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 5 morerailsno fix listedUBUNTU-CVE-2024-54133
openSUSETumbleweedrubygem-actioncable-8.08.0.1-1.1openSUSE-SU-2025:14668-1
openSUSETumbleweedrubygem-actioncable-8.08.0.3-1.3openSUSE-SU-2026:10335-1
openSUSETumbleweedrubygem-actionmailbox-8.08.0.1-1.1openSUSE-SU-2025:14669-1
openSUSETumbleweedrubygem-actionmailbox-8.08.0.3-1.3openSUSE-SU-2026:10336-1
openSUSETumbleweedrubygem-actionmailer-8.08.0.1-1.1openSUSE-SU-2025:14670-1
openSUSETumbleweedrubygem-actionmailer-8.08.0.3-1.3openSUSE-SU-2026:10337-1
openSUSETumbleweedrubygem-actionpack-8.08.0.1-1.1openSUSE-SU-2025:14671-1
openSUSETumbleweedrubygem-actionpack-8.08.0.3-1.3openSUSE-SU-2026:10338-1
openSUSETumbleweedrubygem-actiontext-8.08.0.1-1.1openSUSE-SU-2025:14672-1
openSUSETumbleweedrubygem-actiontext-8.08.0.3-1.3openSUSE-SU-2026:10339-1
openSUSETumbleweedrubygem-actionview-8.08.0.1-1.1openSUSE-SU-2025:14673-1
openSUSETumbleweedrubygem-actionview-8.08.0.3-1.3openSUSE-SU-2026:10340-1
14 more for openSUSE in the JSON and on openSUSE's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's mitigation

Applications can avoid setting CSP headers dynamically from untrusted input or can validate/sanitize that input.

ProductPackageStateAdvisory
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel7Fix deferred
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel8Fix deferred
Red Hat Satellite 6rubygem-actionpackFix deferred
Red Hat Satellite 6satellite:el8/rubygem-actionpackFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-54133.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON