# CVE-2023-28120: Possible XSS Security Vulnerability in SafeBuffer#bytesplice

- Severity: Medium 5.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.95%, higher than 62% of CVEs (2026-12-01)
- Published: 2023-03-15T21:36:01.000Z
- Modified: 2026-06-17T05:46:54.923Z
- Also known as: GHSA-pj73-v5mw-pm9j
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: hackerone

## Description

There is a vulnerability in ActiveSupport if the new bytesplice method is called on a SafeBuffer with untrusted user input.

(As written by CVE List.)

## Affected

- Rails ActiveSupport: from 7.0.4.3 before 7.0.4.3; from 6.1.7.3 before 6.1.7.3
- activesupport (RubyGems): from 7.0.0 before 7.0.4.3; before 6.1.7.3

## Every score

- CISA-ADP: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://discuss.rubyonrails.org/t/cve-2023-28120-possible-xss-security-vulnerability-in-safebuffer-bytesplice/82469> (web)
- <https://github.com/rails/rails/commit/3cf23c3f891e2e81c977ea4ab83b62bc2a444b70> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UPV6PVCX4VDJHLFFT42EXBBSGAWZICOW/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZE5W4MH6IE4DV7GELDK6ISCSTFLHKSYO/>
- <https://security.netapp.com/advisory/ntap-20240202-0006/>
- <https://www.debian.org/security/2023/dsa-5389> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-28120> (advisory)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2023-28120.yml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UPV6PVCX4VDJHLFFT42EXBBSGAWZICOW> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZE5W4MH6IE4DV7GELDK6ISCSTFLHKSYO> (web)
- <https://security.netapp.com/advisory/ntap-20240202-0006> (web)

## Sources

- CVE List: [CVE-2023-28120](https://www.cve.org/CVERecord?id=CVE-2023-28120), CVE Terms of Use, modified 2025-01-09
- GitHub Advisory Database: [GHSA-pj73-v5mw-pm9j](https://github.com/advisories/GHSA-pj73-v5mw-pm9j), CC-BY-4.0, modified 2025-01-10
- NVD: [CVE-2023-28120](https://nvd.nist.gov/vuln/detail/CVE-2023-28120), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-28120 · Whole record: https://cve.day/CVE-2023-28120.json · Rebuilt by cve.day 2026-11-25T22:58:34.492Z
