Vulnerability · Published Mar 22, 2026 · Assigned by VulDB
CVE-2026-4539pygments archetype.py AdlLexer redos
Low 3.3
In plain English
A low-severity regular-expression denial of service in pygments. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 5% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | pygments | no fix listed | DEBIAN-CVE-2026-4539 |
| Debian:13 | pygments | no fix listed | DEBIAN-CVE-2026-4539 |
| Debian:14 | pygments | 2.20.0+dfsg-1 | DEBIAN-CVE-2026-4539 |
| PyPI | pygments | 2.20.0 | GHSA-5239-wwwm-4pmq |
| PyPI | pygments | 2.20.0 | PYSEC-2026-2987 |
| Ubuntu:22.04:LTS | pygments | no fix listed | UBUNTU-CVE-2026-4539 |
| Ubuntu:24.04:LTS | pygments | no fix listed | UBUNTU-CVE-2026-4539 |
| Ubuntu:25.10 | pygments | no fix listed | UBUNTU-CVE-2026-4539 |
| Ubuntu:26.04:LTS | pygments | no fix listed | UBUNTU-CVE-2026-4539 |
| Ubuntu:26.10 | pygments | no fix listed | UBUNTU-CVE-2026-4539 |
Affected products (as reported)
Weakness: CWE-1333, CWE-400 · Vector: 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
References
- VDB-352327 | pygments archetype.py AdlLexer redos vdb-entry, technical-description
- VDB-352327 | CTI Indicators (IOB, IOC, TTP, IOA) signature, permissions-required
- Submit #774685 | pygments <=2.19.2 Denial of Service third-party-advisory
- https://github.com/pygments/pygments/issues/3058 exploit, issue-tracking
- https://github.com/pygments/pygments/ product