high8.6
CVE-2022-34749
Mistune vulnerable to catastrophic backtracking
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | mistune | >= 2.0.0a1, < 2.0.3 | 2.0.3 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Mistune Project | Mistune | through 2.0.2 |
| Fedoraproject | Fedora | Version 37 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/lepture/mistune/commit/a6d43215132fe4f3d93f8d7e90ba83b16a0838b2
- https://github.com/lepture/mistune/releases
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TQHXITQ2DSBYOILKHXBSBB7PFBPZHF63/
- https://github.com/advisories/GHSA-fw3v-x4f2-v673
- https://nvd.nist.gov/vuln/detail/CVE-2022-34749
- https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2022-237.yaml
- https://github.com/lepture/mistune/issues/314#issuecomment-1223972386
- https://github.com/lepture/mistune/commit/ca1e7b506850f4e488823fc7338b49a8f9852718
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TQHXITQ2DSBYOILKHXBSBB7PFBPZHF63