PYSEC-2026-2987

Pygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID Matching

En bref

Publiée
Mise à jour
CVE
CVE-2026-4539
Alias
GHSA-5239-wwwm-4pmq
CVSS_V3
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
CVSS_V4
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

Description

A security flaw has been discovered in pygments before 2.20.0. 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.

Paquets affectés

PaquetVersions
PyPI · pygmentsintroduced 0, fixed 2.20.0

Références

Sources

SourceLicence
OSV.devCC-BY 4.0 — PyPA Advisory Database