Resource exhaustion in Pygments
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 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.
Vulnerability class: DoS (Denial of Service)
EPSS: 0.002 (5.3th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 3.3 (Low). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L.
Affected products
- N/a Pygments — versions 2.19.0, 2.19.1, 2.19.2
Weakness classification (CWE)
References
- cna@vuldb.com (technical-description, vdb-entry)
- cna@vuldb.com (signature, permissions-required)
- cna@vuldb.com (third-party-advisory)
- cna@vuldb.com (issue-tracking, exploit)
- cna@vuldb.com (product)
Frequently asked questions
- What is CVE-2026-4539?
- CVE-2026-4539 is a low-severity vulnerability in Pygments, classified under Uncontrolled Resource Consumption. CVSS score: 3.3/10. Published 2026-03-22.
- How severe is CVE-2026-4539?
- Low severity. CVSS v3 base score is 3.3 out of 10.