CVE-2022-40896
MEDIUMCVSS 5.5/10EPSS 0.50%
Last modified
CVE-2022-40896 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer.. EPSS estimates a 0.50% chance of exploitation in the next 30 days.
Description
A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer.
Metrics
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Pygments | Pygments | <= 2.15.0 |
References
- https://github.com/pygments/pygments/blob/master/pygments/lexers/smithy.py#L61Third Party Advisory
- https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages-part-2/Exploit, Patch, Third Party Advisory
- https://github.com/pygments/pygments/blob/master/pygments/lexers/smithy.py#L61Third Party Advisory
- https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages-part-2/Exploit, Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
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.
How severe is CVE-2022-40896?
CVE-2022-40896 has a CVSS score of 5.5/10 (MEDIUM severity). The EPSS model estimates a 0.50% probability of exploitation in the next 30 days.
How do I fix CVE-2022-40896?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-40886DedeCMS 5.7.98 has a file upload vulnerability in the backgr…7.2
- CVE-2022-40887SourceCodester Best Student Result Management System 1.0 is …9.8
- CVE-2022-40889Phpok 6.1 has a deserialization vulnerability via framework/…9.8
- CVE-2022-4089A vulnerability was found in rickxy Stock Management System.…5.4
- CVE-2022-40890A vulnerability in /src/amf/amf-context.c in Open5GS 2.4.10 …7.5
- CVE-2022-40895In certain Nedi products, a vulnerability in the web UI of N…9.1
- CVE-2022-40897Python Packaging Authority (PyPA) setuptools before 65.5.1 a…5.9
- CVE-2022-40898An issue discovered in Python Packaging Authority (PyPA) Whe…7.5
- CVE-2022-40899An issue discovered in Python Charmers Future 0.18.2 and ear…7.5
- CVE-2022-4090A vulnerability was found in rickxy Stock Management System …8.8
- CVE-2022-40903Aiphone GT-DMB-N 3-in-1 Video Entrance Station with NFC Read…6.5
- CVE-2022-4091A vulnerability was found in SourceCodester Canteen Manageme…6.1
Are you affected by CVE-2022-40896?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
