CVE-2022-34749
mistune: catastrophic backtracking
Overview
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-1333
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | mistune | >=2.0.0a1, <2.0.3 | 2.0.3 |
Open a package to see all its vulnerabilities.
Operating systems · 22 fixes
Red Hat 3 releases · 3 packages
affected 3
wont fix 2
fixed 4
python-mistune
ceph-base
perl-thrift
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | python-mistune | affected | — |
| 8 | python-mistune | affected | — |
| 8 | python-mistune | wont fix | — |
| 8 | ceph-base +24 | 2:18.2.1-381.el8cp | RHSA-2026:2769 |
| 9 | python-mistune | affected | — |
| 9 | python-mistune | wont fix | — |
3 more rows
alpine 4 releases · 1 package
fixed 4
py3-mistune
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | py3-mistune | 2.0.3-r0 |
| 3.23 | py3-mistune | 2.0.3-r0 |
| 3.24 | py3-mistune | 2.0.3-r0 |
| edge | py3-mistune | 2.0.3-r0 |
debian 5 releases · 1 package
affected 2
fixed 3
mistune
| Release | Package | Fixed in |
|---|---|---|
| 10 | mistune | affected |
| 11 | mistune | affected |
| 12 | mistune | 2.0.3-1 |
| 13 | mistune | 2.0.3-1 |
| 14 | mistune | 2.0.3-1 |
echo 1 release · 1 package
fixed 1
mistune
| Release | Package | Fixed in |
|---|---|---|
| mistune | 2.0.3-1 |
openSUSE 1 release · 3 packages
fixed 3
python310-mistune
python310-mistune2
python311-mistune
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | python310-mistune +2 | 2.0.4-1.1 | openSUSE-SU-2024:12350-1 |
| Tumbleweed | python310-mistune2 +2 | 2.0.5-1.1 | openSUSE-SU-2024:13453-1 |
| Tumbleweed | python311-mistune +2 | 3.1.0-1.1 | openSUSE-SU-2025:14637-1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2022-34749
- github.com https://github.com/lepture/mistune
- github.com https://github.com/lepture/mistune/commit/a6d43215132fe4f3d93f8d7e90ba83b16a0838b2
- github.com https://github.com/lepture/mistune/commit/ca1e7b506850f4e488823fc7338b49a8f9852718
- github.com https://github.com/lepture/mistune/issues/314#issuecomment-1223972386
- github.com https://github.com/lepture/mistune/releases
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2022-237.yaml
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TQHXITQ2DSBYOILKHXBSBB7PFBPZHF63/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TQHXITQ2DSBYOILKHXBSBB7PFBPZHF63
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2022-34749
Show all 11 references
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.