GHSA-fw3v-x4f2-v673
Mistune vulnerable to catastrophic backtracking
At a glance
- Published
- Updated
- CVE
- CVE-2022-34749
- Aliases
- PYSEC-2022-237
- CVSS_V3
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
- CVSS_V4
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
Description
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
| Package | Versions |
|---|---|
| PyPI · mistune | introduced 2.0.0a1, fixed 2.0.3 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-34749 ADVISORY
- https://github.com/lepture/mistune/issues/314#issuecomment-1223972386 WEB
- https://github.com/lepture/mistune/commit/a6d43215132fe4f3d93f8d7e90ba83b16a0838b2 WEB
- https://github.com/lepture/mistune/commit/ca1e7b506850f4e488823fc7338b49a8f9852718 WEB
- https://github.com/lepture/mistune PACKAGE
- https://github.com/lepture/mistune/releases WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2022-237.yaml WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TQHXITQ2DSBYOILKHXBSBB7PFBPZHF63 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |