CVE-2026-4539
pygments: Pygments: Denial of Service via inefficient regular expression processing in AdlLexer
Overview
Description
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.
Source: OX vulnerability database
Severity
3.3 · LOW
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Weakness: CWE-400, CWE-1333
Affected packages · 3
Operating systems · 126 fixes
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 5.0 | python3-pygments | 2.13.0-5.2.ph5 |
Red Hat 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | openshift4-ose-olm-catalogd-rhel9 +5 | affected |
| 8 | openshift4-ose-olm-catalogd-rhel9 | affected |
| 9 | openshift4-ose-olm-catalogd-rhel9 +2 | affected |
SUSE Linux Enterprise 3 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | python311-pygments | 2.15.1-150400.7.10.1 | SUSE-SU-2026:1666-1 |
| 15.7 | python311-pygments | 2.15.1-150400.7.10.1 | SUSE-SU-2026:1666-1 |
| 15.7 | python3-pygments | 2.6.1-150300.4.6.1 | SUSE-SU-2026:1667-1 |
| 16.0 | python313-pygments | 2.19.1-160000.3.1 | SUSE-SU-2026:22093-1 |
SUSE Linux Enterprise Micro 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 6.2 | python313-pygments | 2.19.1-160000.3.1 | SUSE-SU-2026:22058-1 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | python3-pygments | 2.7.4-1.amzn2023.0.3 |
chainguard 1 release · 75 packages
| Release | Package | Fixed in |
|---|---|---|
| py3-9-pip +1 | not affected | |
| kserve | 0.16.0-r24 | |
| kubeflow-katib | 0.19.0-r40 | |
| kserve-huggingfaceserver-cuda-13-3 | 0.21.0-r4 | |
| request-1276 | 0.27.1-r1 | |
| py3-cassandra-medusa | 0.29.1-r1 |
69 more rows
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | pygments | affected |
| 12 | pygments | affected |
| 13 | pygments | affected |
| 14 | pygments | 2.20.0+dfsg-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| pygments | affected |
minimos 1 release · 11 packages
| Release | Package | Fixed in |
|---|---|---|
| kubeflow-katib | 0.19.0-r2 | |
| label-studio | 1.23.1-r0 | |
| acapy-agent-1-3 | 1.3.5-r0 | |
| acapy-agent-1-6 | 1.6.2-r0 | |
| litellm-1-80 | 1.80.15-r1 | |
| litellm-1-81 | 1.81.14-r1 |
5 more rows
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | python311-pygments +2 | 2.20.0-2.1 | openSUSE-SU-2026:10476-1 |
openSUSE Leap 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | python313-pygments | 2.19.1-160000.3.1 | openSUSE-SU-2026:20931-1 |
wolfi 1 release · 23 packages
| Release | Package | Fixed in |
|---|---|---|
| py3-pip | not affected | |
| kserve | 0.16.0-r24 | |
| kubeflow-katib | 0.19.0-r40 | |
| py3-cassandra-medusa | 0.29.1-r1 | |
| open-webui | 0.8.12-r2 | |
| reflex | 0.8.28-r2 |
17 more rows
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-4539
- github.com https://github.com/pygments/pygments
- github.com https://github.com/pygments/pygments/
- github.com https://github.com/pygments/pygments/commit/24b8aa76c6cd6d70f39c6dd605cce319c98e2ccc
- github.com https://github.com/pygments/pygments/issues/3058
- github.com https://github.com/pygments/pygments/pull/3064
- github.com https://github.com/pygments/pygments/releases/tag/2.20.0
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-4539
- vuldb.com https://vuldb.com/?ctiid.352327
- vuldb.com https://vuldb.com/?id.352327
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.