SB20240613110 - Multiple vulnerabilities in Ruby on Rails
Published: June 13, 2024 Updated: July 2, 2024
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 2 vulnerabilities.
1) Protection Mechanism Failure (CVE-ID: CVE-2024-28103)
CWE-ID: CWE-693 - Protection Mechanism Failure
CVSSv4: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
The vulnerability allows a remote attacker to bypass certain security restrictions.
The vulnerability exists due to Action Pack set the configurable Permissions-Policy only for responses with an HTML related Content-Type. A remote attacker can bypass implemented security restrictions.
2) Cross-site scripting (CVE-ID: CVE-2024-32464)
CWE-ID: CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVSSv4: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U/U:Green
The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.
The vulnerability exists due to insufficient sanitization of user-supplied data in ActionText::Attachable::ContentAttachment when parsing attachments. A remote attacker can inject and execute arbitrary HTML and script code in user's browser in context of vulnerable website.
Remediation
Install update from vendor's website.
References
- https://github.com/rails/rails/security/advisories/GHSA-fwhr-88qx-h9g7
- https://github.com/rails/rails/commit/35858f1d9d57f6c4050a8d9ab754bd5d088b4523
- https://github.com/rails/rails/security/advisories/GHSA-prjp-h48f-jgf6
- https://github.com/rails/rails/commit/e215bf3360e6dfe1497c1503a495e384ed6b0995
- https://github.com/rails/rails/releases/tag/v7.1.3.4