
CVE catalog
CVE-2022-40896
pygments: CVE-2022-40896
- Severity
- Medium · CVSS 5.5
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.52% · Oct 25, 2026
A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | pygments | sid | 2.20.0+dfsg-2 | fixed |
| Debian | pygments | forky | 2.20.0+dfsg-2 | fixed |
| Debian | pygments | trixie | 2.18.0+dfsg-2 | fixed |
| Debian | pygments | bookworm | 2.14.0+dfsg-1 | vulnerable |
| Ubuntu | pygments | 22.04 | 2.7.1+dfsg-2.1 | vulnerable |
| Ubuntu | pygments | 22.04 | 2.10.0+dfsg-1 | vulnerable |
| Ubuntu | pygments | 22.04 | 2.11.2+dfsg-2 | vulnerable |
| Ubuntu | pygments | 22.04 | 2.11.2+dfsg-2ubuntu0.1 | fixed |
| Ubuntu | pygments | 18.04 | 2.2.0+dfsg-1 | vulnerable |
| Ubuntu | pygments | 18.04 | 2.2.0+dfsg-1ubuntu0.1 | vulnerable |
| Ubuntu | pygments | 18.04 | 2.2.0+dfsg-1ubuntu0.2 | vulnerable |
| Ubuntu | pygments | 20.04 | 2.3.1+dfsg-1ubuntu1 | vulnerable |
| Ubuntu | pygments | 20.04 | 2.3.1+dfsg-1ubuntu2 | vulnerable |
| Ubuntu | pygments | 20.04 | 2.3.1+dfsg-1ubuntu2.1 | vulnerable |
| Ubuntu | pygments | 20.04 | 2.3.1+dfsg-1ubuntu2.2 | vulnerable |
| Ubuntu | pygments | 22.04 | 2.7.1+dfsg-2.1 | vulnerable |
| Ubuntu | pygments | 22.04 | 2.10.0+dfsg-1 | vulnerable |
| Ubuntu | pygments | 22.04 | 2.11.2+dfsg-2 | vulnerable |
| Ubuntu | pygments | 22.04 | 2.11.2+dfsg-2ubuntu0.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | pygments | source | sid | 2.15.1+dfsg-1 | not yet assigned | Not reported | Not reported |
| Debian | pygments | source | forky | 2.15.1+dfsg-1 | not yet assigned | Not reported | Not reported |
| Debian | pygments | source | trixie | 2.15.1+dfsg-1 | not yet assigned | Not reported | Not reported |
| Debian | pygments | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Ubuntu | pygments | deb | 22.04 | 2.11.2+dfsg-2ubuntu0.1 | Not reported | USN-7128-1 | Not reported |
| Ubuntu | pygments | deb | 22.04 | 2.11.2+dfsg-2ubuntu0.1 | Not reported | UBUNTU-CVE-2022-40896 | Not reported |
Notes
[bookworm] pygments: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-pygments]Affected
Source package: [pygments]
Details (2)
2.14.0+dfsg-1· all · bookwormAffected
dsa · pygments · debian · bookworm
2.14.0+dfsg-1· all · bookwormAffected
dsa · pygments · debian · bookworm
- [python-pygments-doc]Affected
Source package: [pygments]
Details (2)
2.14.0+dfsg-1· all · bookwormAffected
dsa · pygments · debian · bookworm
2.14.0+dfsg-1· all · bookwormAffected
dsa · pygments · debian · bookworm
Observed:
References
- [https://osv.dev/vulnerability/UBUNTU-CVE-2022-40896]
- [https://osv.dev/vulnerability/USN-7128-1]
- [https://security-tracker.debian.org/tracker/CVE-2022-40896]
- [https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-40896.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-0113.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]