Skip to main content
MEDIUM

CVE-2022-40896

CVSS v3

5.5

MEDIUM

EPSS Score

0.5 %

exploit probability, as of 2026-10-19

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for pygments.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • pygmentsPyPIall versions · fixed in 2.15.1

Vendor advisories

  • CVE-2022-40896 Red Hat Product Security14 products fixed · 28 known affected

    pygments: ReDoS in pygments

    aap-cloud-metrics-collector-container as a component of Red Hat Ansible Automation Platform 2 · python-pygments.src as a component of Red Hat Enterprise Linux 6 · python-pygments.src as a component of Red Hat Enterprise Linux 7

  • RHSA-2024:2010 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Satellite 6.15.0 release

  • RHSA-2024:1072 Red Hat Product Security8 products fixed

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Container Release Security and Bug Fix Update

  • RHSA-2024:1057 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update

Full record on NVD

Description

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

Technical details

Published
2023-07-19

Frequently asked questions

What is CVE-2022-40896?

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

Is CVE-2022-40896 actively exploited?

Active exploitation of CVE-2022-40896 has not been confirmed. Its EPSS score was 0.5% on 2026-10-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-40896?

CVE-2022-40896 has a CVSS v3 base score of 5.5 (MEDIUM severity).

Running pygments? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month