Todas las CVE / python_software_foundation
CVE-2024-21503python_software_foundation black
Media 5.3 Sin autenticación
Seguir: esta CVE · python_software_foundation · python_software_foundation black Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 47
- CVSS 3.1
- 5.3
- EPSS
- 1.1% probabilidad de explotación en 30 días · percentil 66
- Requiere autenticación
- No
- Publicada
- 19 mar 2024
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: sí · Impacto técnico: parcial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Qué pasa
Versions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the lines_with_leading_tabs_expanded function in the strings.py file. An attacker could exploit this vulnerability by crafting a malicious input that causes a denial of service.
Exploiting this vulnerability is possible when running Black on untrusted input, or if you habitually put thousands of leading tab characters in your docstrings.
Qué hacer
- Aplica la actualización de seguridad del fabricante para black.
- 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 | black |
< 24.3.0 |
24.3.0 |
pip install "black>=24.3.0" |
| PyPI | black |
< 24.3.0 |
24.3.0 |
pip install "black>=24.3.0" |
Según OSV / GitHub Advisories (GHSA-fj7x-q9j7-g6q6, PYSEC-2024-48). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados
- python_software_foundation · black
Según el CNA que publicó la CVE. NVD todavía no cargó los CPE con versiones.
Boletines oficiales
- python313-black-26.5.1-1.3 on GA media · SUSE · openSUSE-SU-2026:12001-1 · 4 oct 2026 Media
Avisos de fabricantes, CERT y distribuciones que nombran esta CVE. Títulos sin modificar.
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.