Bug 2112230 (CVE-2022-34749)

Summary: CVE-2022-34749 mistune: catastrophic backtracking
Product: [Other] Security Response Reporter: TEJ RATHI <trathi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: amctagga, aoconnor, bniver, dfreiber, drow, flucifre, gmeno, jburrell, lupinix.fedora, mbenjamin, mhackett, pdelbell, python-sig, sostapov, vereddy, vkumar
Target Milestone: ---Keywords: Reopened, Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: mistune 2.0.3 Doc Type: If docs needed, set a value
Doc Text:
A regular expression denial of service (ReDoS) flaw was found in the asteris emphasis regular expression implementation in Mistune. By sending specially-crafted regex input, a remote attacker could invoke a catastrophic backtrack, resulting in a denial of service.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-30 19:33:00 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: 2112231, 2255447, 2255448, 2112232    
Bug Blocks: 2111156    

Description TEJ RATHI 2022-07-29 06:35:00 UTC
In mistune through 2.0.2, support of inline markup is implemented by using regular expressions that can involve a high amount of backtracking on certain edge cases. This behavior is commonly named catastrophic backtracking.

https://github.com/lepture/mistune/commit/a6d43215132fe4f3d93f8d7e90ba83b16a0838b2
https://github.com/lepture/mistune/releases

Comment 1 TEJ RATHI 2022-07-29 06:36:21 UTC
Created python-mistune tracking bugs for this issue:

Affects: epel-all [bug 2112231]
Affects: fedora-all [bug 2112232]

Comment 2 Product Security DevOps Team 2022-08-30 19:32:59 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.