CVE-2026-4539
LOW 1.9CVSS 4.0Pygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID Matching
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.
- Published
- 22 Mar 2026
- Last modified
- 10 Sep 2026
- Assigned by
- cna@vuldb.com
- NVD status
- Deferred
- Weakness
- CWE-1333CWE-400
- Also known as
- GHSA-5239-wwwm-4pmqPYSEC-2026-2987
- Sources
- NVDJSONOSV GHSA-5239-wwwm-4pmqJSONOSV PYSEC-2026-2987JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cna@vuldb.com (Secondary) | 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 |
| OSV | GitHub | CVSS 4.0 | 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 | |
| OSV | PyPA | CVSS 4.0 | 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 | |
| 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 |
| OSV | GitHub | 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 |
| OSV | PyPA | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | pygments | < 2.20.0 | 2.20.0 |
References
- https://github.com/pygments/pygments/ · PACKAGE
- https://github.com/pygments/pygments/issues/3058 · WEB
- https://vuldb.com/?ctiid.352327 · WEB
- https://vuldb.com/?id.352327 · WEB
- https://vuldb.com/?submit.774685 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-4539 · ADVISORY
- https://github.com/pygments/pygments/pull/3064 · WEB
- https://github.com/pygments/pygments/commit/24b8aa76c6cd6d70f39c6dd605cce319c98e2ccc · WEB
- https://github.com/pygments/pygments/releases/tag/2.20.0 · WEB
- https://pypi.org/project/pygments · PACKAGE
- https://github.com/advisories/GHSA-5239-wwwm-4pmq · ADVISORY
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 22 Mar 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 22 Mar 2026)