CVE-2026-4539
pygments archetype.py AdlLexer redos
- State
- Published
- Severity
- 4.8 Medium
- Published
- Mar 22, 2026
- Updated
- Mar 23, 2026
- Reserved
- Mar 21, 2026
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
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 4.8 Medium | 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 |
| 3.1 | 3.3 Low | 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 |
| 3.0 | 3.3 Low | 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 |
| 2.0 | 1.7 Low | AV:L/AC:L/Au:S/C:N/I:N/A:P/E:POC/RL:ND/RC:UR | VulDB |
Weaknesses
Affected Products
| Product | Versions |
|---|---|
pygmentsn/a |
|
References
- VDB-352327 | pygments archetype.py AdlLexer redosvdb-entrytechnical-description
- VDB-352327 | CTI Indicators (IOB, IOC, TTP, IOA)signaturepermissions-required
- Submit #774685 | pygments <=2.19.2 Denial of Servicethird-party-advisory
- https://github.com/pygments/pygments/issues/3058exploitissue-tracking
- https://github.com/pygments/pygments/product
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.