CVE-2022-34749
HIGH8.6EPSS 0.52%Mistune vulnerable to catastrophic backtracking
Published: 7/26/2022Modified: 4/28/2026
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 (3)
- Debian/mistunefrom 0
- PyPI/mistune>= 2.0.0a1, < 2.0.3
- PyPI/mistunefrom 0, < a6d43215132fe4f3d93f8d7e90ba83b16a0838b2 | >= 2.0.0a1, < 2.0.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
| osv | CVSS 3.1 | HIGH8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H |
References (10)
- ADVISORYhttps://github.com/advisories/GHSA-fw3v-x4f2-v673
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2022-34749
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2022-34749
- PATCHhttps://github.com/lepture/mistune
- WEBhttps://github.com/lepture/mistune/commit/a6d43215132fe4f3d93f8d7e90ba83b16a0838b2
- WEBhttps://github.com/lepture/mistune/commit/ca1e7b506850f4e488823fc7338b49a8f9852718
- WEBhttps://github.com/lepture/mistune/issues/314#issuecomment-1223972386
- WEBhttps://github.com/lepture/mistune/releases
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2022-237.yaml
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/TQHXITQ2DSBYOILKHXBSBB7PFBPZHF63