# CVE-2022-34749: Mistune vulnerable to catastrophic backtracking

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.66%, higher than 77% of CVEs (2026-12-01)
- Published: 2022-07-25T00:00:00.000Z
- Modified: 2026-06-17T04:50:51.650Z
- Also known as: GHSA-fw3v-x4f2-v673, PYSEC-2022-237
- Weaknesses: CWE-1333
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mistune (PyPI): from 2.0.0a1 before 2.0.3; before a6d43215132fe4f3d93f8d7e90ba83b16a0838b2
- mistune_project mistune: up to 2.0.2
- fedoraproject fedora: 37

## Every score

- GitHub: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/lepture/mistune/releases> (release-notes, third-party-advisory, web)
- <https://github.com/lepture/mistune/commit/a6d43215132fe4f3d93f8d7e90ba83b16a0838b2> (fix, patch, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TQHXITQ2DSBYOILKHXBSBB7PFBPZHF63/> (vendor-advisory)
- <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/ca1e7b506850f4e488823fc7338b49a8f9852718> (web)
- <https://github.com/lepture/mistune> (package)
- <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)
- <https://github.com/advisories/GHSA-fw3v-x4f2-v673> (advisory)

## Sources

- CVE List: [CVE-2022-34749](https://www.cve.org/CVERecord?id=CVE-2022-34749), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-fw3v-x4f2-v673](https://github.com/advisories/GHSA-fw3v-x4f2-v673), CC-BY-4.0, modified 2024-09-25
- NVD: [CVE-2022-34749](https://nvd.nist.gov/vuln/detail/CVE-2022-34749), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-237](https://osv.dev/vulnerability/PYSEC-2022-237), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2022-34749 · Whole record: https://cve.day/CVE-2022-34749.json · Rebuilt by cve.day 2026-11-25T22:58:13.206Z
