CVE-2026-4539
published medium CVSS 4.0 · 4.8pygments archetype.py AdlLexer redos
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | pygments2.19.0 · 2.19.1 · 2.19.2 | Affected | Not stated | VulDB |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2-2026-3817 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1973 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP4 | python311-Pygmentsnoarch | Advisory build | 2.15.1-150400.7.10.1 | SUSE-SU-2026:1666-1 |
| Amazon Linux | AL2 | python3-pygmentsnoarch | Listed in advisory | Not stated | ALAS2-2026-3817 |
| SUSE / openSUSE | SLE-15-SP7 | python3-Pygmentsnoarch | Advisory build | 2.6.1-150300.4.6.1 | SUSE-SU-2026:1667-1 |
| SUSE / openSUSE | SLE-15-SP7 | python311-Pygmentsnoarch | Advisory build | 2.15.1-150400.7.10.1 | SUSE-SU-2026:1666-1 |
Show 19 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-16 | python313-Pygmentsnoarch | Advisory build | 2.19.1-160000.3.1 | SUSE-SU-2026:22093-1 |
| SUSE / openSUSE | SLE-3-SP7 | python311-Pygmentsnoarch | Advisory build | 2.15.1-150400.7.10.1 | SUSE-SU-2026:1666-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python311-Pygmentsnoarch | Advisory build | 2.15.1-150400.7.10.1 | SUSE-SU-2026:1666-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-Pygmentsnoarch | Advisory build | 2.19.1-160000.3.1 | OPENSUSE-SU-2026:20931-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Pygmentsaarch64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Pygmentsppc64le | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Pygmentss390x | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Pygmentsx86_64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Pygmentsaarch64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Pygmentsppc64le | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Pygmentss390x | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Pygmentsx86_64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Pygmentsaarch64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Pygmentsppc64le | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Pygmentss390x | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10476-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Pygmentsx86_64 | Advisory build | 2.20.0-2.1 | OPENSUSE-SU-2026:10476-1 |
| Amazon Linux | AL2 | python3-pygmentssrc | Listed in advisory | Not stated | ALAS2-2026-3817 |
| Amazon Linux | AL2023 | python-pygmentsnoarch | Listed in advisory | Not stated | ALAS2023-2026-1973 |
| Amazon Linux | AL2023 | python-pygmentssrc | Listed in advisory | Not stated | ALAS2023-2026-1973 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 4.8 / 10
- Severity
- medium
- Provider
- VulDB · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 3.3 | low | VulDB · cna | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:X/RC:R | — |
| 3.0 | 3.3 | low | VulDB · cna | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:X/RC:R | — |
| 2.0 | 1.7 | low | VulDB · cna | AV:L/AC:L/Au:S/C:N/I:N/A:P/E:POC/RL:ND/RC:UR | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | pygments | 2.19.0 (affected)2.19.1 (affected)2.19.2 (affected) | VulDB · cna |
Weaknesses
2- CWE-1333 Inefficient Regular Expression Complexity
- CWE-400 Resource Consumption
References
5- https://github.com/pygments/pygments/
- https://github.com/pygments/pygments/issues/3058
- VDB-352327 | CTI Indicators (IOB, IOC, TTP, IOA) https://vuldb.com/?ctiid.352327
- VDB-352327 | pygments archetype.py AdlLexer redos https://vuldb.com/?id.352327
- Submit #774685 | pygments <=2.19.2 Denial of Service https://vuldb.com/?submit.774685
Provider assertions
2VulDB · cna
pygments archetype.py AdlLexer redos
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 63185b88bb60393e11015454e593f59197897b3e6070a8c066bdee37bd8c760d
- Ingested
- 23 Sep 2026, 09:18:17 UTC
- Source record
- Official CVE record