Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2022-40896

19
FAUCET Score

CVE-2022-40896 describes a Regular Expression Denial of Service (ReDoS) vulnerability affecting Pygments versions up to 2.15.0, specifically within the SmithyLexer component. This medium-severity vulnerability (CVSS 5.5) can lead to a denial of service (availability impact) if a user is tricked into processing a specially crafted input, though it requires local access and user interaction. Currently, there is no evidence of active exploitation, public exploit code, or significant community discussion surrounding this CVE.

Impacted Technologies

VendorProductVersion(s)CPE
<= 2.15.0CPE matchmatch criteria
cpe:2.3:a:pygments:pygments:*:*:*:*:*:*:*:*

CVSS Data

CVSS version used by this source: 3.1

5.5MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality Impact
NONE
Integrity Impact
NONE
Availability Impact
HIGH
Exploitability Score
1.8
Impact Score
3.6
CvssVersion
3.1

Exploit Intelligence

EPSS Score
0.52%
Probability of exploitation in next 30 days
EPSS Percentile
41.0%
Percentile rank of EPSS score among Peer Group
As of 2026-07-24
Model: v2026.06.15
This CVE's current EPSS score of 0.0052 is in the 45th percentile among its peer group of 5,758 CVEs.

Social Chatter

The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.0 Bluesky, 0.0 Mastodon, and 0.1 GitHub mentions.

Media Mentions

No media coverage found for this CVE.

The average CVE in this peer group has 0.1 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.

Remediation

Patch Available

Vendor Patches (14)

microsoftpatch availablevia msrc
Product: azl3 python-pygments 2.4.2-1 on Azure Linux 3.0Fixed in: 2.4.2-1
microsoftpatch availablevia msrc
Product: 18836-17084Fixed in: 2.4.2-1
pippatch availablevia ghsa
Product: PygmentsFixed in: 2.15.0
redhatpatch availablevia redhat_api
Product: Red Hat Ansible Automation Platform 2.4 for RHEL 8Fixed in: ansible-automation-platform-24/ee-supported-rhel8:1.0.0-572
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Ansible Automation Platform 2.4 for RHEL 9Fixed in: python-pygments-0:2.17.2-1.el9ap
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Ansible Automation Platform 2.4 for RHEL 9Fixed in: ansible-automation-platform-24/ee-supported-rhel9:1.0.0-573
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Satellite 6.15 for RHEL 8Fixed in: python-pygments-0:2.17.0-1.el8pc
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Ansible Automation Platform 2.4 for RHEL 8Fixed in: python3x-pygments-0:2.17.2-1.el8ap
View patch
redhatno patchvia redhat_api
Product: Red Hat Enterprise Linux 8Fixed in: resource-agents
redhatend of lifevia redhat_api
Product: Red Hat Enterprise Linux 8Fixed in: python27:2.7/python-pygments
redhatend of lifevia redhat_api
Product: Red Hat Enterprise Linux 8Fixed in: python3.11-pip
redhatend of lifevia redhat_api
Product: Red Hat Enterprise Linux 8Fixed in: python36:3.6/python-pygments
redhatend of lifevia redhat_api
Product: Red Hat Enterprise Linux 9Fixed in: python3.11-pip
redhatend of lifevia redhat_api
Product: Red Hat Ansible Automation Platform 2Fixed in: aap-cloud-metrics-collector-container

Vendor Advisories (3)

redhatCVE-2022-40896Moderate

pygments: ReDoS in pygments

Nov 26, 2023
pipGHSA-mrwq-x4v8-fh7pmedium

Pygments vulnerable to ReDoS

Jul 19, 2023
microsoft2023-Jul/CVE-2022-40896Moderate

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

Jul 11, 2023

References

lists.fedoraproject.org / archives/list/[email protected]/message/EZGMXALE3HSP4OXC7UUWIKX3OXKZDTY3
lists.fedoraproject.org / archives/list/[email protected]/message/VUZO4BQCIY2S2KZYHERQMKURB7AHXDBO
github.com / pygments/pygments/blob/master/pygments/lexers/smithy.py
Third Party Advisory
lists.fedoraproject.org / archives/list/package-announce%40lists.fedoraproject.org/message/EZGMXALE3HSP4OXC7UUWIKX3OXKZDTY3
lists.fedoraproject.org / archives/list/package-announce%40lists.fedoraproject.org/message/VUZO4BQCIY2S2KZYHERQMKURB7AHXDBO
pypi.org / project/Pygments
Product
pyup.io / posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages-part-2
ExploitPatchThird Party Advisory