#VU103958 Cross-site scripting in actionpack - CVE-2024-54133


Vulnerability identifier: #VU103958

Vulnerability risk: Low

CVSSv4.0: 0.6 [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:U/U:Clear]

CVE-ID: CVE-2024-54133

CWE-ID: CWE-79

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
actionpack
Web applications / Modules and components for CMS

Vendor: Ruby

Description

The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.

The vulnerability exists in the `content_security_policy` helper. 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. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in user's browser in context of vulnerable website.

Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

actionpack: 5.0.0 rc1 - 5.0.7.2, 5.1.0 rc1 - 5.1.7, 5.2.0 rc1 - 5.2.8.1, 6.0.0 rc1 - 6.0.6.1, 6.1.0 rc1 - 6.1.7.10, 7.0.0 rc1 - 7.0.8.6, 7.1.0 rc1 - 7.1.5, 7.2.0 beta1 - 7.2.2, 8.0.0 beta1 - 8.0.0 rc2


External links
https://github.com/rails/rails/commit/2e3f41e4538b9ca1044357f6644f037bbb7c6c49
https://github.com/rails/rails/commit/3da2479cfe1e00177114b17e496213c40d286b3a
https://github.com/rails/rails/commit/5558e72f22fc69c1c407b31ac5fb3b4ce087b542
https://github.com/rails/rails/commit/cb16a3bb515b5d769f73926d9757270ace691f1d
https://github.com/rails/rails/security/advisories/GHSA-vfm5-rmrh-j26v


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability