Ubuntu CVE Tracker
UBUNTU-CVE-2022-40896
Details
A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:18.04:LTS | pygments | All versions, no fix listed |
| Ubuntu:20.04:LTS | pygments | All versions, no fix listed |
| Ubuntu:22.04:LTS | pygments | All versions before 2.11.2+dfsg-2ubuntu0.1 (fixed in 2.11.2+dfsg-2ubuntu0.1) |
References
- https://ubuntu.com/security/CVE-2022-40896
- https://pypi.org/project/Pygments/
- https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages-part-2/
- https://github.com/pygments/pygments/blob/master/pygments/lexers/smithy.py#L61
- https://www.cve.org/CVERecord?id=CVE-2022-40896
- https://ubuntu.com/security/notices/USN-7128-1