CVE-2021-27291Pygments
Alta 7.5 Sin autenticación
Seguir: esta CVE · Pygments · Pygments Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 60
- CVSS 3.1
- 7.5
- EPSS
- 3.9% probabilidad de explotación en 30 días · percentil 91
- Requiere autenticación
- No
- Publicada
- 17 mar 2021
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-1333
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Qué pasa
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.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Pygments.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| PyPI | pygments |
≥ 1.1 < 2.7.4 |
2.7.4 |
pip install "pygments>=2.7.4" |
| PyPI | pygments |
≥ 1.1 < 2.7.4 |
2.7.4 |
pip install "pygments>=2.7.4" |
Según OSV / GitHub Advisories (GHSA-pq64-v7f5-gqh8, PYSEC-2021-141). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| pygments | pygments | ≥ 1.1 < 2.7.4 |
| debian | debian_linux | 9.0 |
| debian | debian_linux | 10.0 |
| fedoraproject | fedora | 32 |
| fedoraproject | fedora | 33 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- gist.github.com Exploit Third Party Advisory
- github.com Patch Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- www.debian.org Third Party Advisory
- www.debian.org Third Party Advisory