cve.bz

CVE-2023-28120 rails activesupport: Cross-site Scripting

5.3 mediumEPSS 0.9%Fix available

Medium (5.3) in rails activesupport. EPSS 0.9% estimated probability of exploitation activity in the next 30 days. Fixed in activesupport 6.1.7.3, 7.0.4.3.

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

Severity

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
EPSS
0.9% (unchanged from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 62nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-01-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-28120 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-28120?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-28120?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-28120 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Rails ActiveSupportfrom 7.0.4.3 before 7.0.4.3
Rails ActiveSupportfrom 6.1.7.3 before 6.1.7.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-pj73-v5mw-pm9jRubyGemsactivesupport>=7.0.0 <7.0.4.37.0.4.3
GHSA-pj73-v5mw-pm9jRubyGemsactivesupport<6.1.7.36.1.7.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11rails2:6.0.3.7+dfsg-2+deb11u2DSA-5389-1
Debian12, 13, 14rails2:6.1.7.3+dfsg-1DEBIAN-CVE-2023-28120
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 5 morerailsno fix listedUBUNTU-CVE-2023-28120
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Module for Public Cloud 15 SP2 and 2 morermt-server2.13-150200.3.32.1SUSE-SU-2023:2294-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 6 morermt-server2.13-150300.3.24.1SUSE-SU-2023:2280-1
SUSELinux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Module for Public Cloud 15 SP1, Linux Enterprise Server 15 SP1-LTSS and 1 morermt-server2.13-150100.3.45.1SUSE-SU-2023:2304-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Server Applications 15 SP4rmt-server2.13-150400.3.12.1SUSE-SU-2023:2295-1
SUSELinux Enterprise Module for Public Cloud 15 SP5, Linux Enterprise Module for Server Applications 15 SP5rmt-server2.13-150500.3.3.1SUSE-SU-2023:2781-1
openSUSELeap 15.4rmt-server2.13-150400.3.12.1SUSE-SU-2023:2295-1
openSUSELeap 15.5rmt-server2.13-150500.3.3.1SUSE-SU-2023:2781-1
openSUSETumbleweedrmt-server2.12-1.1openSUSE-SU-2024:12886-1
openSUSETumbleweedrubygem-activesupport-7.07.0.4.3-1.1openSUSE-SU-2024:12804-1
openSUSETumbleweedrubygem-activesupport-7.07.0.8.4-1.1openSUSE-SU-2024:14071-1
openSUSETumbleweedrubygem-activesupport-7.07.0.8.6-1.3openSUSE-SU-2025:15114-1
Alpinev3.17, v3.18, v3.19 and 5 moreruby-activesupport7.0.4.3-r0ALPINE-CVE-2023-28120

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Avoid calling bytesplice on a SafeBuffer (html_safe) string with untrusted user input.

ProductPackageStateAdvisory
RHOL-5.6-RHEL-8openshift-logging/fluentd-rhel8:v1.14.6-113Fixed 2023-04-26RHSA-2023:1953
RHOL-5.7-RHEL-8openshift-logging/fluentd-rhel8:v1.14.6-140Fixed 2023-06-12RHSA-2023:3495
Red Hat 3scale API Management Platform 23scale-amp2/backend-rhel8Affected
Red Hat 3scale API Management Platform 23scale-amp2/toolbox-rhel8Will not fix
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel8Will not fix
Red Hat OpenShift Container Platform 3.11rubygem-activesupportOut of support scope
Red Hat Satellite 6candlepinNot affected
Red Hat Satellite 6rubygem-activesupportNot affected
Red Hat Satellite 6rubygem-deep_cloneableNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-28120.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON