
CVE catalog
CVE-2026-4539
A security flaw has been discovered in pygments up to 2.19.2. The impacted element is the function AdlLexer of the file pygments/lexers/archetype.py. The manipulation results in inefficient regular ex
- Severity
- Medium · CVSS 4.8
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.16% · Oct 25, 2026
A security flaw has been discovered in pygments up to 2.19.2. The impacted element is the function AdlLexer of the file pygments/lexers/archetype.py. The manipulation results in inefficient regular expression complexity. The attack is only possible with local access. The exploit has been released to the public and may be used for attacks. The project was informed of the problem early through an issue report but has not responded yet.
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 | vulnerable |
| Debian | pygments | bookworm | 2.14.0+dfsg-1 | vulnerable |
| Cpe | pygments | Not reported | Not reported | vulnerable |
| PyPI | pygments | Not reported | 2.20.0 | fixed |
| PyPI | pygments | Not reported | 2.20.0 | fixed |
| Suse | python-Pygments | linux enterprise server 16.0 | 2.19.1-160000.3.1 | fixed |
| Suse | python-Pygments | linux enterprise server for sap applications 16.0 | 2.19.1-160000.3.1 | fixed |
| Opensuse | python-Pygments | leap 16.0 | 2.19.1-160000.3.1 | fixed |
| Suse | python-Pygments | linux micro 6.2 | 2.19.1-160000.3.1 | fixed |
| Opensuse | python-Pygments | tumbleweed | 2.20.0-2.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | pygments | source | sid | 2.20.0+dfsg-1 | not yet assigned | Not reported | [1132233] |
| Debian | pygments | source | forky | 2.20.0+dfsg-1 | not yet assigned | Not reported | [1132233] |
| Debian | pygments | source | trixie | (unfixed) | not yet assigned | Not reported | [1132233] |
| Debian | pygments | source | bookworm | (unfixed) | not yet assigned | Not reported | [1132233] |
| PyPI | pygments | PyPI | Not reported | 2.20.0 | Not reported | GHSA-5239-WWWM-4PMQ | Not reported |
| PyPI | pygments | PyPI | Not reported | 2.20.0 | Not reported | Not reported | Not reported |
| Suse | python-Pygments | rpm | linux enterprise server 16.0 | 2.19.1-160000.3.1 | Not reported | SUSE-SU-2026:22093-1 | Not reported |
| Suse | python-Pygments | rpm | linux enterprise server for sap applications 16.0 | 2.19.1-160000.3.1 | Not reported | SUSE-SU-2026:22093-1 | Not reported |
| Opensuse | python-Pygments | rpm | leap 16.0 | 2.19.1-160000.3.1 | Not reported | OPENSUSE-SU-2026:20931-1 | Not reported |
| Suse | python-Pygments | rpm | linux micro 6.2 | 2.19.1-160000.3.1 | Not reported | SUSE-SU-2026:22058-1 | Not reported |
| Opensuse | python-Pygments | rpm | tumbleweed | 2.20.0-2.1 | Not reported | OPENSUSE-SU-2026:10476-1 | Not reported |
Notes
[trixie] pygments: Minor issue [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
nvd · pygments · debian · bookworm; nvd · pygments · debian · 12
2.14.0+dfsg-1· all · bookwormAffected
nvd · pygments · debian · bookworm; nvd · pygments · debian · 12
- [python-pygments-doc]Affected
Source package: [pygments]
Details (2)
2.14.0+dfsg-1· all · bookwormAffected
nvd · pygments · debian · bookworm; nvd · pygments · debian · 12
2.14.0+dfsg-1· all · bookwormAffected
nvd · pygments · debian · bookworm; nvd · pygments · debian · 12
[Debian 13 (Trixie)]
- [python3-pygments]Affected
Source package: [pygments]
Details (2)
2.18.0+dfsg-2· all · trixieAffected
nvd · pygments · debian · 13
2.18.0+dfsg-2· all · trixieAffected
nvd · pygments · debian · 13
- [python-pygments-doc]Affected
Source package: [pygments]
Details (2)
2.18.0+dfsg-2· all · trixieAffected
nvd · pygments · debian · 13
2.18.0+dfsg-2· all · trixieAffected
nvd · pygments · debian · 13
[openSUSE Tumbleweed]
- [python313-Pygments]Unknown
Source package: [python-Pygments]
Details (1)
2.21.0-1.1· noarch · tumbleweedUnknown · Fixed:
2.20.0-2.1Version impact unknown
nvd · python-Pygments · opensuse · tumbleweed
- [python314-Pygments]Unknown
Source package: [python-Pygments]
Details (1)
2.21.0-1.1· noarch · tumbleweedUnknown · Fixed:
2.20.0-2.1Version impact unknown
nvd · python-Pygments · opensuse · tumbleweed
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2026_1666-1.json]
- [https://github.com/advisories/GHSA-5239-wwwm-4pmq]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-4539]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-4539]
- [https://osv.dev/vulnerability/GHSA-5239-wwwm-4pmq]
- [https://osv.dev/vulnerability/SUSE-SU-2026:22058-1]
- [https://osv.dev/vulnerability/SUSE-SU-2026:22093-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:10476-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:20931-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-4539]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4539.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-3046.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]