CVE-2023-28120 Details
Description
There is a vulnerability in ActiveSupport if the new bytesplice method is called on a SafeBuffer with untrusted user input.
A cross-site scripting (XSS) vulnerability has been identified in the ActiveSupport component of Ruby on Rails. This issue arises in all versions prior to 7.0.4.3 and 6.1.7.3, when the new 'bytesplice' method is used on a SafeBuffer object containing untrusted user input. The vulnerability exists because ActiveSupport's SafeBuffer subclass, which is designed to handle HTML-safe strings, does not properly recognize the 'bytesplice' method as a mutation, leading to potential XSS risks.
Users can upgrade to Ruby on Rails versions 7.0.4.3 or 6.1.7.3 to address this vulnerability. For those unable to upgrade immediately, a patch is available for both the 6.1 and 7.0 series.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jan 9, 2025CISA-ADP
Assessed Jan 9, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://discuss.rubyonrails.org/t/cve-2023-28120-possible-xss-security-vulnerability-in-safebuffer-bytesplice/82469 | [email protected] | AdvisoryRemedyVendor |
| https://github.com/rails/rails/commit/3cf23c3f891e2e81c977ea4ab83b62bc2a444b70 | [email protected] | Source CodeVendor |
| https://lists.fedoraproject.org/archives/list/[email protected]/message/UPV6PVCX4VDJHLFFT42EXBBSGAWZICOW/ | [email protected] | AdvisoryMailing ListRemedyVendor |
| https://lists.fedoraproject.org/archives/list/[email protected]/message/ZE5W4MH6IE4DV7GELDK6ISCSTFLHKSYO/ | [email protected] | Mailing ListRemedy |
| https://security.netapp.com/advisory/ntap-20240202-0006/ | [email protected] | AdvisoryVendor |
| https://www.debian.org/security/2023/dsa-5389 | [email protected] | AdvisoryBundleMailing ListRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| Ruby on Rails | < 7.0.4.3 < 6.1.7.3 |
CPE
Remediation
| |
| Fedora | All versions |
CPE
Remediation
| |
| NetApp | < 7.0.4.3 < 6.1.7.3 |
CPE
Remediation
| |
| Debian | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 9, 2025 | CVE Modified | CISA-ADP |
| Jan 9, 2025 | New CVE Received | [email protected] |
Volerion