Bug 2179637 (CVE-2023-28120)

Summary: CVE-2023-28120 rubygem-activesupport: Possible XSS in SafeBuffer#bytesplice
Product: [Other] Security Response Reporter: ybuenos
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: amackenz, amasferr, bbuckingham, bcourt, chazlett, ehelms, jcantril, jsherril, lzap, mhulan, mkudlej, myarboro, nmoumoul, orabin, pcreech, periklis, rchan, tjochec
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rubygem-activesupport 6.1.7.3, rubygem-activesupport 7.0.4.3 Doc Type: ---
Doc Text:
A Cross-Site-Scripting vulnerability was found in rubygem ActiveSupport. If the new bytesplice method is called on a SafeBuffer with untrusted user input, malicious code could be executed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-13 05:30:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2179645, 2179644    
Bug Blocks: 2178818    

Description ybuenos 2023-03-19 12:48:40 UTC
There is a vulnerability in ActiveSupport if the new bytesplice method is called on a SafeBuffer with untrusted user input. ActiveSupport uses the SafeBuffer string subclass to tag strings as html_safe after they have been sanitized. When these strings are mutated, the tag should be removed to mark them as no longer being html_safe.

Comment 1 ybuenos 2023-03-19 14:15:57 UTC
Created rubygem-activesupport tracking bugs for this issue:

Affects: epel-all [bug 2179645]
Affects: fedora-all [bug 2179644]

Comment 4 errata-xmlrpc 2023-04-26 07:58:22 UTC
This issue has been addressed in the following products:

  RHOL-5.6-RHEL-8

Via RHSA-2023:1953 https://access.redhat.com/errata/RHSA-2023:1953

Comment 5 errata-xmlrpc 2023-06-12 19:08:57 UTC
This issue has been addressed in the following products:

  RHOL-5.7-RHEL-8

Via RHSA-2023:3495 https://access.redhat.com/errata/RHSA-2023:3495

Comment 6 Product Security DevOps Team 2023-06-13 05:30:02 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2023-28120