CVE-2022-34749: Mistune vulnerable to catastrophic backtracking

CVE-2022-34749 · Severity: low · CVSS 3.1 · Published 2022-07-25

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.

Technologies: mistune (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2022-34749 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2022-34749 being exploited in the wild.
How severe is CVE-2022-34749?
Low severity, with a CVSS score of 3.1, published 25 July 2022.
Which products and versions are affected?
mistune (PyPI) ECOSYSTEM:introduced=2.0.0a1,fixed=2.0.3, GIT:introduced=0,fixed=a6d43215132fe4f3d93f8d7e90ba83b16a0838b2|ECOSYSTEM:introduced=2.0.0a1,fixed=2.0.3.
Is there a fix for CVE-2022-34749?
Yes. mistune (PyPI): upgrade to 2.0.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2022-34749?
Check whether you run mistune (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • mistune (PyPI): upgrade to 2.0.3 or later
    pip install "mistune>=2.0.3"

Affected products

  • mistune (PyPI) ECOSYSTEM:introduced=2.0.0a1,fixed=2.0.3, GIT:introduced=0,fixed=a6d43215132fe4f3d93f8d7e90ba83b16a0838b2|ECOSYSTEM:introduced=2.0.0a1,fixed=2.0.3

Identifiers

  • CVE-2022-34749
  • GHSA-fw3v-x4f2-v673
  • PYSEC-2022-237

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.