CVE-2026-4539
pygments archetype.py AdlLexer redos
At a glance Severity MEDIUM 4.8 EPSS EPSS 0.16 % · percentile 5 (2026-10-27) State PUBLISHED Published 2026-03-22 Updated 2026-03-23 Assigner VulDB NVD status Deferred
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.
Scores Version Score Vector Scored by CVSS 4.0 MEDIUM 4.8 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 VulDB CVSS 3.1 LOW 3.3 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 VulDB CVSS 3.0 LOW 3.3 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 VulDB CVSS 2.0 LOW 1.7 AV:L/AC:L/Au:S/C:N/I:N/A:P/E:POC/RL:ND/RC:UR VulDB CVSS 4.0 LOW 1.9 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/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 NVD · cna@vuldb.com (Secondary) CVSS 3.1 LOW 3.3 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L NVD · cna@vuldb.com (Secondary) CVSS 2.0 LOW 1.7 AV:L/AC:L/Au:S/C:N/I:N/A:P NVD · cna@vuldb.com (Secondary)
Weaknesses (CWE)
Advisories GHSA-5239-wwwm-4pmq — Pygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID MatchingPYSEC-2026-2987 — Pygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID Matching
European references
CERT-FR advisories
Affected products Product Versions pygments affected 2.19.0 ; affected 2.19.1 ; affected 2.19.2
References
Sources