CVE-2022-40896: pygments
Vulnerability summary
CVE-2022-40896 is a medium (CVSS 5.5) vulnerability in pygments. EPSS estimates a 0.52% chance of exploitation in the next 30 days, higher than 44.1% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 2Timeline
- 19-07-2023PublishedVulnerability first disclosed.
- 27-11-2024Last modifiedVulnerability information updated.
Description
A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · PypiEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.52%
Chance of exploitation in the next 30 days
Percentile
44%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.52% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (pyup.io)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Debian1 product
- pygmentsAll versions (No fix recorded) | < 2.15.1+dfsg-1
Mageia1 product
- python-pygments< 2.15.1-1.mga9
Pygments1 product
- pygments≤ 2.15.0
PyPI1 product
- pygments< 2.15.0 | < 2.15.1
Ubuntu1 product
- pygmentsAll versions (No fix recorded) | < 2.11.2+dfsg-2ubuntu0.1
5 vendors · 5 products
References
24 links- pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages-part-2/WEBREPORTExploitPatchThird Party Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
Show all 24 references
- github.com/pygments/pygmentsPACKAGE