Bug 2080296 (CVE-2022-27777)

Summary: CVE-2022-27777 tfm-rubygem-actionview: Possible cross-site scripting vulnerability in Action View tag helpers
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: akarol, amackenz, amasferr, bbuckingham, bcourt, btotty, chazlett, dmetzger, drieden, ehelms, gmccullo, gtanzill, jaruga, jfrey, jhardy, jsherril, lzap, mhulan, mkudlej, nmoumoul, obarenbo, orabin, pcreech, pvalena, rchan, roliveri, ruby-packagers-sig, simaishi, smallamp, strzibny, tjochec
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rubygem-actionview 7.0.2.4, rubygem-actionview 6.1.5.1, rubygem-actionview 6.0.4.8, rubygem-actionview 5.2.7.1 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in rubygem-actionview when untrusted data such as the hash key for tag attributes are not properly escaped. This flaw allows an attacker to perform a Cross-site scripting attack.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-03 22:33:48 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: 2080297, 2092266    
Bug Blocks: 2080298    

Description Pedro Sampaio 2022-04-29 12:54:05 UTC
There is a possible XSS vulnerability in Action View tag helpers.  Passing untrusted input as hash keys can lead to a possible XSS vulnerability.

References:

https://github.com/rubysec/ruby-advisory-db/tree/master/gems/actionview/CVE-2022-27777.yml

Comment 1 Pedro Sampaio 2022-04-29 12:54:22 UTC
Created rubygem-actionview tracking bugs for this issue:

Affects: fedora-all [bug 2080297]

Comment 2 Pedro Sampaio 2022-04-29 13:00:00 UTC
There is a possible XSS vulnerability in Action View tag helpers.  Passing untrusted input as hash keys can lead to a possible XSS vulnerability.

References:

https://github.com/rubysec/ruby-advisory-db/tree/master/gems/actionview/CVE-2022-27777.yml

Comment 4 Jun Aruga 2022-06-02 15:00:35 UTC
Note that on current Fedora rawhide, the rubygem-actionview version is 7.0.2.3-1, while it will be fixed at rubygem-actionview 7.0.2.4.

https://src.fedoraproject.org/rpms/rubygem-actionview
> rubygem-actionview-7.0.2.3-1.fc37

Comment 9 errata-xmlrpc 2023-05-03 13:19:19 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.13 for RHEL 8

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

Comment 10 Product Security DevOps Team 2023-05-03 22:33:45 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-2022-27777