Skip to main content
No exploitation reportedFix available

CVE-2022-40896

No exploitation reported by the sources we read.

  • Published2023-07-19
  • Fixed in2.15.1 · 2.15.0
  • WeaknessCWE-434

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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

Timeline

dates in UTC
  1. 2023-07-1915:15CVE publishedNVD

Versions per branch

OSV · NVD
pygments
BranchAffectedFixed in
2.15< 2.15.12.15.1
2.15< 2.15.02.15.0
Pygments
BranchAffectedFixed in
2.15≤ 2.15.0no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

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

  • ansible-automation-platform-installerRed Hat:ansible_automation_platform:2.4::el9all versions · fixed in 0:2.4-6.el9ap
  • ansible-automation-platform-installerRed Hat:ansible_automation_platform:2.4::el8all versions · fixed in 0:2.4-6.el8ap
  • automation-eda-controllerRed Hat:ansible_automation_platform:2.4::el9all versions · fixed in 0:1.0.5-1.el9apand 3 other packages
  • automation-eda-controllerRed Hat:ansible_automation_platform:2.4::el8all versions · fixed in 0:1.0.5-1.el8apand 3 other packages
  • foremanRed Hat:satellite:6.15::el8all versions · fixed in 0:3.9.1.6-1.el8satand 14 other packages
  • foremanRed Hat:satellite_utils:6.15::el8all versions · fixed in 0:3.9.1.6-1.el8satand 1 other package
  • foremanRed Hat:satellite_capsule:6.15::el8all versions · fixed in 0:3.9.1.6-1.el8satand 1 other package
  • oracle-free-21-extrasMinimOSall versions · no fixed version listed

55 more package ranges on OSV.dev

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 · +25 more

  • 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

Fix

  1. Update pygments to 2.15.1 · 2.15.0
  2. Vendor fix Red Hat Product Security RHSA-2024:2010 · 4 productsFor details on how to apply this update, refer to: * For upgrading connected Satellite: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.15/html-single/upgrading_connected_red_hat_satellite_to_6.15 * For upgrading disconnected Satellite: https://access.redhat.com/documentation/en-u…
  3. Vendor fix Red Hat Product Security RHSA-2024:1072 · 8 productsRed Hat Ansible Automation Platform
  4. Workaround from the vendor Red Hat Product Security RHSA-2024:2010 · 1,864 productsMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
  5. No fix available, says the vendor Red Hat Product Security CVE-2022-40896 · 5 productsAffected
  6. No fix planned, says the vendor Red Hat Product Security CVE-2022-40896 · 10 productsOut of support scope
  7. No fix planned, says the vendor Red Hat Product Security CVE-2022-40896 · 13 productsWill not fix

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Published
2023-07-19
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-mrwq-x4v8-fh7p

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-12-04, 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), with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.

Running pygments? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record