Vulnerability · Published Jul 19, 2023 · Assigned by mitre
CVE-2022-40896
Medium 5.5
In plain English
A medium-severity security flaw in the pygments package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)0.5%top 55.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | pygments | no fix listed | DEBIAN-CVE-2022-40896 |
| Debian:13 | pygments | 2.15.1+dfsg-1 | DEBIAN-CVE-2022-40896 |
| Debian:14 | pygments | 2.15.1+dfsg-1 | DEBIAN-CVE-2022-40896 |
| PyPI | pygments | 2.15.0 | GHSA-mrwq-x4v8-fh7p |
| PyPI | pygments | 2.15.1 | PYSEC-2023-117 |
| Ubuntu:22.04:LTS | pygments | 2.11.2+dfsg-2ubuntu0.1 | USN-7128-1 |
| Ubuntu:22.04:LTS | pygments | 2.11.2+dfsg-2ubuntu0.1 | UBUNTU-CVE-2022-40896 |
Affected products (as reported)
References
- https://pypi.org/project/Pygments/
- https://github.com/pygments/pygments/blob/master/pygments/lexers/smithy.py#L61
- https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages-part-2/
- FEDORA-2024-db87ce2a47 vendor-advisory
- FEDORA-2024-8eaf80107a vendor-advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EZGMXALE3HSP4OXC7UUWIKX3OXKZDTY3/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VUZO4BQCIY2S2KZYHERQMKURB7AHXDBO/