Bug 1820616 (CVE-2020-6817)

Summary: CVE-2020-6817 python-bleach: behavior parsing style attributes could result in a regular expression denial of service (ReDoS)
Product: [Other] Security Response Reporter: Michael Kaplan <mkaplan>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: igor.raits, mrunge
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-bleach 3.1.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-03 16:31:57 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: 1820624, 1820625    
Bug Blocks:    

Description Michael Kaplan 2020-04-03 13:10:30 UTC
Calls to bleach.clean with an allowed tag with an allowed style attribute are vulnerable to ReDoS. For example, bleach.clean(..., attributes={'a': ['style']}).

Comment 1 Michael Kaplan 2020-04-03 13:26:47 UTC
Upstream Reference:

https://github.com/mozilla/bleach/security/advisories/GHSA-vqhp-cxgc-6wmm

Comment 2 Michael Kaplan 2020-04-03 13:27:16 UTC
Created python-bleach tracking bugs for this issue:

Affects: epel-all [bug 1820624]
Affects: fedora-all [bug 1820625]

Comment 3 Product Security DevOps Team 2020-04-03 16:31:57 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.