{"id":"CVE-2022-34749","aliases":["CVE-2022-34749","GHSA-fw3v-x4f2-v673","PYSEC-2022-237"],"related":[],"kind":"vulnerability","state":"published","title":"Mistune vulnerable to catastrophic backtracking","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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":"cvelist"},{"lang":"es","text":"En mistune versiones hasta 2.0.2, la compatibilidad con el marcado en línea es implementado mediante el uso de expresiones regulares que pueden implicar una gran cantidad de retroceso en determinados casos límite. Este comportamiento es comúnmente llamado backtracking catastrófico.","source":"nvd"}],"published":"2022-07-25T00:00:00.000Z","modified":"2026-06-17T04:50:51.650Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0a1","status":"affected","fixed":"2.0.3"}],"ecosystem":"PyPI","package":"mistune","purl":"pkg:pypi/mistune","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"2.0.2"}],"vendor":"mistune_project","product":"mistune","cpe":"cpe:2.3:a:mistune_project:mistune:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"37"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"a6d43215132fe4f3d93f8d7e90ba83b16a0838b2"},{"type":"ecosystem","introduced":"2.0.0a1","status":"affected","fixed":"2.0.3"}],"ecosystem":"PyPI","package":"mistune","purl":"pkg:pypi/mistune","repo":"https://github.com/lepture/mistune","source":"pysec"}],"references":[{"url":"https://github.com/lepture/mistune/releases","tags":["release-notes","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/lepture/mistune/commit/a6d43215132fe4f3d93f8d7e90ba83b16a0838b2","tags":["fix","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TQHXITQ2DSBYOILKHXBSBB7PFBPZHF63/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-34749","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/lepture/mistune/issues/314#issuecomment-1223972386","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/lepture/mistune/commit/ca1e7b506850f4e488823fc7338b49a8f9852718","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/lepture/mistune","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2022-237.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TQHXITQ2DSBYOILKHXBSBB7PFBPZHF63","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-fw3v-x4f2-v673","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-34749","url":"https://www.cve.org/CVERecord?id=CVE-2022-34749","licence":"CVE Terms of Use","modified":"2024-08-03T09:22:10.438Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fw3v-x4f2-v673","url":"https://github.com/advisories/GHSA-fw3v-x4f2-v673","licence":"CC-BY-4.0","modified":"2024-09-25T20:22:38.019Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-34749","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-34749","licence":"Public domain","modified":"2026-06-17T04:50:51.650Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-237","url":"https://osv.dev/vulnerability/PYSEC-2022-237","licence":"CC-BY-4.0","modified":"2023-11-08T04:09:46.263Z"}],"updatedAt":"2026-11-25T22:58:13.206Z","epss":{"score":0.01656,"percentile":0.77307,"date":"2026-12-01T12:00:22.000Z"}}