Vulnerability · Published Jan 9, 2025 · Assigned by hackerone

CVE-2023-28120

Medium 5.3

In plain English

A medium-severity cross-site scripting in ActiveSupport from Rails. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 61% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.9%top 38.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20ruby-activesupport7.0.4.3-r0ALPINE-CVE-2023-28120
Alpine:v3.21ruby-activesupport7.0.4.3-r0ALPINE-CVE-2023-28120
Alpine:v3.22ruby-activesupport7.0.4.3-r0ALPINE-CVE-2023-28120
Alpine:v3.23ruby-activesupport7.0.4.3-r0ALPINE-CVE-2023-28120
Alpine:v3.24ruby-activesupport7.0.4.3-r0ALPINE-CVE-2023-28120
Debian:12rails2:6.1.7.3+dfsg-1DEBIAN-CVE-2023-28120
Debian:13rails2:6.1.7.3+dfsg-1DEBIAN-CVE-2023-28120
Debian:14rails2:6.1.7.3+dfsg-1DEBIAN-CVE-2023-28120
RubyGemsactivesupport6.1.7.3GHSA-pj73-v5mw-pm9j
RubyGemsactivesupport7.0.4.3GHSA-pj73-v5mw-pm9j
Ubuntu:24.04:LTSrailsno fix listedUBUNTU-CVE-2023-28120
Ubuntu:25.10railsno fix listedUBUNTU-CVE-2023-28120
Ubuntu:26.04:LTSrailsno fix listedUBUNTU-CVE-2023-28120
Ubuntu:26.10railsno fix listedUBUNTU-CVE-2023-28120

Affected products (as reported)

VendorProductVersions
Rails ActiveSupport 7.0.4.3 – before 7.0.4.36.1.7.3 – before 6.1.7.3

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

References