Bug 2080302 (CVE-2022-22577)

Summary: CVE-2022-22577 rubygem-actionpack: Possible cross-site scripting vulnerability in Action Pack
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, mo, nmoumoul, obarenbo, orabin, pcreech, pvalena, rchan, roliveri, ruby-packagers-sig, simaishi, smallamp, sseago, strzibny, tjochec, vondruch
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rubygem-actionpack 7.0.2.4, rubygem-actionpack 6.1.5.1, rubygem-actionpack 6.0.4.8, rubygem-actionpack 5.2.7.1 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in rubygem-actionpack where CSP headers were sent with responses that Rails considered "HTML" responses. This flaw allows an attacker to leave API requests without CSP headers and perform a Cross-site scripting attack.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-03 22:45:47 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: 2080310, 2092267    
Bug Blocks: 2080315    

Description Pedro Sampaio 2022-04-29 12:57:52 UTC
There is a possible XSS vulnerability in Rails / Action Pack.

References:

https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2022-22577.yml

Comment 1 Pedro Sampaio 2022-04-29 12:58:50 UTC
Created rubygem-actionpack tracking bugs for this issue:

Affects: fedora-all [bug 2080310]

Comment 3 Jun Aruga 2022-06-01 12:37:15 UTC
> https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2022-22577.yml
>
> Versions Affected:  >= 5.2.0
> Not affected:       < 5.2.0
> Fixed Versions:     7.0.2.4, 6.1.5.1, 6.0.4.8, 5.2.7.1

Comment 7 errata-xmlrpc 2023-05-03 13:19:20 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 8 Product Security DevOps Team 2023-05-03 22:45:43 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-22577