Fiche vulnérabilité
CVE-2021-27291 : faille élevée pygments pygments (CVSS 7.5)
Description
In pygments 1.1+, fixed in 2.7.4, the lexers used to parse programming languages rely heavily on regular expressions. Some of the regular expressions have exponential or cubic worst-case complexity and are vulnerable to ReDoS. By crafting malicious input, an attacker can cause a denial of service.
En bref
- Sévérité
- Élevée (CVSS 7.5)
- Vecteur CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Exploitation active
- Non signalée par la CISA
- Publication
- 17 mars 2021
- Dernière mise à jour
- 17 juin 2026
Produits concernés
- pygments pygments
- debian debian linux
- fedoraproject fedora
Références
- Fiche CVE-2021-27291 sur le NVD (NIST)
- gist.github.com/b-c-ds/b1a2cc0c68a35c57188575eb496de5ce
- github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493…
- lists.debian.org/debian-lts-announce/2021/03/msg00024.html
- lists.debian.org/debian-lts-announce/2021/05/msg00003.html
- lists.debian.org/debian-lts-announce/2021/05/msg00006.html
- lists.fedoraproject.org/archives/list/package…
- lists.fedoraproject.org/archives/list/package…
- debian.org/security/2021/dsa-4878
- debian.org/security/2021/dsa-4889