Bug 1646715 (CVE-2018-16468)

Summary: CVE-2018-16468 rubygem-loofah: XXS when a crafted SVG element is republished
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bbuckingham, bcourt, bkearney, bmidwood, dajohnso, dclarizi, dmetzger, gblomqui, gmccullo, gtanzill, hhorak, jaruga, jfrey, jhardy, jorton, jprause, kdixon, ktdreyer, lavenel, mmccune, obarenbo, ohadlevy, pvalena, rchan, rjerrido, roliveri, ruby-maint, simaishi, vondruch
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rubygem-loofah 2.2.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-20 11:59:07 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: 1646716, 1656919, 1656920, 1664341    
Bug Blocks: 1646717    

Description Laura Pardo 2018-11-05 21:37:47 UTC
A flaw was found in the Loofah gem for Ruby, through v2.2.2. An XSS due to an unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished. 



References:
https://github.com/flavorjones/loofah/issues/154

Upstream Patch:
https://github.com/flavorjones/loofah/commit/be0fd3ac0fad452730f10e318fa31706257fd081

Comment 1 Laura Pardo 2018-11-05 21:38:26 UTC
Created rubygem-loofah tracking bugs for this issue:

Affects: fedora-all [bug 1646716]

Comment 7 Yadnyawalk Tale 2020-04-23 16:03:28 UTC
Red Hat CloudForms 5.10 and 5.11 is no more affected since gem is updated in cfme-gemset.

cloudforms_managementengine:5.10/cfme-gemset-0:5.10.15.1-1.el7cf:rubygem:loofah-2.2.3
cloudforms_managementengine:5.10/cfme-amazon-smartstate-0:5.10.15.1-1.el7cf:rubygem:loofah-2.2.3
cloudforms_managementengine:5.11/cfme-amazon-smartstate-0:5.11.4.2-1.el8cf:rubygem:loofah-2.2.3

Comment 8 Doran Moppert 2021-01-20 04:52:36 UTC
Statement:

Red Hat Satellite 6 does not allow displaying user-defined SVGs and is thus not affected by this CVE.

Comment 9 Product Security DevOps Team 2021-01-20 11:59:07 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-2018-16468