Bug 2179637 (CVE-2023-28120) - CVE-2023-28120 rubygem-activesupport: Possible XSS in SafeBuffer#bytesplice
Summary: CVE-2023-28120 rubygem-activesupport: Possible XSS in SafeBuffer#bytesplice
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2023-28120
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2179645 2179644
Blocks: 2178818
TreeView+ depends on / blocked
 
Reported: 2023-03-19 12:48 UTC by ybuenos
Modified: 2023-06-13 05:30 UTC (History)
18 users (show)

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.
Clone Of:
Environment:
Last Closed: 2023-06-13 05:30:05 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:1953 0 None None None 2023-04-26 07:58:23 UTC
Red Hat Product Errata RHSA-2023:3495 0 None None None 2023-06-12 19:08:59 UTC

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


Note You need to log in before you can comment on or make changes to this bug.