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?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2023-07-1915:15CVE publishedNVD
Versions per branch
OSV · NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.15 | < 2.15.1 | 2.15.1 | OSV |
| 2.15 | < 2.15.0 | 2.15.0 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.15 | ≤ 2.15.0 | no fix published | NVD |
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
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
Red Hat Security Advisory: Satellite 6.15.0 release
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Container Release Security and Bug Fix Update
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update
Fix
- Update pygments to 2.15.1 · 2.15.0
- 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…
- Vendor fix Red Hat Product Security RHSA-2024:1072 · 8 productsRed Hat Ansible Automation Platform
- 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.
- No fix available, says the vendor Red Hat Product Security CVE-2022-40896 · 5 productsAffected
- No fix planned, says the vendor Red Hat Product Security CVE-2022-40896 · 10 productsOut of support scope
- No fix planned, says the vendor Red Hat Product Security CVE-2022-40896 · 13 productsWill not fix
Advisories and patches
- pyup.ioPatch
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-12-04
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2024-11-27
- NVDCVSS 3.15.5read 2026-10-23
- NVDweakness (CWE)CWE-434read 2026-10-23
- FIRST EPSSEPSS score0.5 %2026-12-04
- OSVaffected packages—
- GitHub AdvisoriesadvisoryModerate2023-07-20
Identifiers
- AZL-27502same flawAzure Linux · MIT
- AZL-35139same flawAzure Linux · MIT
- EUVD-2023-0215same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-mrwq-x4v8-fh7psame flawGitHub Advisory Database · CC-BY-4.0
- MINI-pvx8-36jq-fh6rsame flawMinimOS · LicenseRef-unstated
- PYSEC-2023-117same flawPyPA Advisory Database · CC-BY-4.0
- MGASA-2024-0107advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2023-1477advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2023-1478advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2023-1479advisory covering several CVEsopenEuler · LicenseRef-unstated
- RHSA-2024:1057advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:2010advisory covering several CVEsRed Hat · CC-BY-4.0
- USN-7128-1advisory covering several CVEsUbuntu
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?
Is CVE-2022-40896 actively exploited?
What is the CVSS score for CVE-2022-40896?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-mrwq-x4v8-fh7p
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0