CVE-2022-40896: PYSEC-2023-117 - A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer.

CVE-2022-40896 · Severity: low · CVSS 3.1 · Published 2023-07-19

A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer.

Technologies: pygments (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2022-40896 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2022-40896 being exploited in the wild.
How severe is CVE-2022-40896?
Low severity, with a CVSS score of 3.1, published 19 July 2023.
Which products and versions are affected?
pygments (PyPI) ECOSYSTEM:introduced=0,fixed=2.15.0, ECOSYSTEM:introduced=0,fixed=2.15.1.
Is there a fix for CVE-2022-40896?
Yes. pygments (PyPI): upgrade to 2.15.0, 2.15.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2022-40896?
Check whether you run pygments (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

  • pygments (PyPI): upgrade to 2.15.0, 2.15.1 or later
    pip install "pygments>=2.15.1"

Affected products

  • pygments (PyPI) ECOSYSTEM:introduced=0,fixed=2.15.0, ECOSYSTEM:introduced=0,fixed=2.15.1

Identifiers

  • CVE-2022-40896
  • GHSA-mrwq-x4v8-fh7p
  • PYSEC-2023-117

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