CVE-2026-4539: pygments archetype.py AdlLexer redos
Vulnerability summary
CVE-2026-4539 is a medium (CVSS 4.8) Uncontrolled Resource Consumption vulnerability in pygments. EPSS estimates a 0.16% chance of exploitation in the next 30 days, higher than 5% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 4.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 22-03-2026PublishedVulnerability first disclosed.
- 23-03-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
14 scores · 7 sources · 4 versions- OSV · PypiEcosystem advisory · calculated4.8MediumCVSS: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
- OSV · UbuntuEcosystem advisory · calculated4.8MediumCVSS: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
- OSV · DebianEcosystem advisory · calculated4.8MediumCVSS: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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · WolfiEcosystem advisory · calculated4.8MediumCVSS: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
- OSV · ChainguardEcosystem advisory · calculated4.8MediumCVSS: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
- NVDNIST1.9LowCVSS: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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XDiffers
- OSV · PypiEcosystem advisory · calculated3.3LowCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
- OSV · UbuntuEcosystem advisory · calculated3.3LowCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
- NVDNIST3.3LowCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
- NVDNIST1.7LowAV:L/AC:L/Au:S/C:N/I:N/A:P
EPSS trend
Probability
0.16%
Chance of exploitation in the next 30 days
Percentile
5%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.16% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundPygments
Maturity: poc
Weaknesses
CWE · root cause- CWE-400Uncontrolled Resource ConsumptionThe product does not properly control the allocation and maintenance of a limited resource.
- CWE-1333Inefficient Regular Expression ComplexityThe product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard135 products
- airflow-2< 2.11.2-r4
- airflow-3< 3.1.8-r10
- airflow-core-2< 2.11.2-r2
- airflow-core-3< 3.1.8-r2
- ansible-operator< 1.42.3-r1
Wolfi57 products
- airflow-3< 3.1.8-r10
- az< 2.84.0-r4
- dask-kubernetes< 2026.3.0-r2
- datadog-agent-7.72All versions (No fix recorded)
- datadog-agent-7.72-core-integrationsAll versions (No fix recorded)
Opensuse2 products
- python-Pygments&distro=openSUSE Leap 16.0< 2.19.1-160000.3.1
- python-Pygments&distro=openSUSE Tumbleweed< 2.20.0-2.1
Suse2 products
- python-Pygments&distro=SUSE Linux Enterprise Server 16.0< 2.19.1-160000.3.1
- python-Pygments&distro=SUSE Linux Enterprise Server for SAP applications 16.0< 2.19.1-160000.3.1
Debian1 product
- pygmentsAll versions (No fix recorded) | < 2.20.0+dfsg-1
Mageia1 product
- python-pygments< 2.15.1-1.1.mga9
PyPI1 product
- pygments< 2.20.0
Ubuntu1 product
- pygmentsAll versions (No fix recorded)
8 vendors · 200 products · Showing 200 of 201
References
23 linksShow all 23 references
- github.com/pygments/pygmentsPACKAGE
- pypi.org/project/pygmentsPACKAGE