Medium5.5PATCH AVAILABLENot Available
CVE-2022-40896
Security vulnerability in pygments
Published 2023-07-19
CVSS v3.1 Score
5.5
Medium
EPSS
0.52%
more likely than 45.6% of CVEs
CISA KEV
Not listed
Fixed in
2.12.0+aikido.2
Remediation Guide
How to Fix This Vulnerability
Upgrade to a fixed version
2.12.0+aikido.22.12.0+aikido.3
Remediation Steps
- 1Upgrade the package to version 2.12.0+aikido.2, 2.12.0+aikido.3 or later
- 2Review and audit affected systems for potential exploitation
- 3Implement additional security controls if immediate patching is not possible
- 4Monitor for suspicious activity related to this vulnerability
Mitigation Strategies
- Immediate PatchingHigh
Apply security patches to version 2.12.0+aikido.2, 2.12.0+aikido.3 immediately
- Network SegmentationMedium
Isolate affected systems from untrusted networks until patching is complete
- Monitoring and DetectionMedium
Implement enhanced monitoring for exploitation attempts and unusual behavior
Description
A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer.
A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer. This vulnerability involves weaknesses in
Impact Assessment
This medium-severity vulnerability could be exploited under certain conditions to compromise security controls or access sensitive information. Should be addressed in a timely manner.
Attack Characteristics
- Attack Vector
- LOCAL
- Complexity
- LOW
- Privileges Required
- NONE
- User Interaction
- REQUIRED
Attack Metrics
CVSS v3.1 Metrics Breakdown
- attack Vector
- LOCAL
- attack Complexity
- LOW
- privileges Required
- NONE
- user Interaction
- REQUIRED
- scope
- Unchanged
- confidentiality Impact
- Medium
- integrity Impact
- Medium
- availability Impact
- Medium
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HEvent History
Vulnerability Timeline
- 2023-07-19T15:15:10.007Vulnerability publishedpublished
- 2023-07-19T15:15:10.007Patches released: 2.12.0+aikido.2, 2.12.0+aikido.3patched
▪ Common questions
How severe is CVE-2022-40896?
CVE-2022-40896 is rated MEDIUM with a CVSS score of 5.5 (attack vector: LOCAL).
How do I fix CVE-2022-40896?
Upgrade the affected package to 2.12.0+aikido.2, 2.12.0+aikido.3.
What kind of weakness is CVE-2022-40896?
CVE-2022-40896 is classified as CWE-434 — Security vulnerability in pygments.