Todas las CVE / Yt-dlp Project
CVE-2024-22423Yt-dlp Project Yt-dlp
Crítica 9.8 Sin autenticación
Seguir: esta CVE · Yt-dlp Project · Yt-dlp Project Yt-dlp Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.4% probabilidad de explotación en 30 días · percentil 73
- Requiere autenticación
- No
- Publicada
- 9 abr 2024
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-78
- SSVC (CISA)
- Explotación: ninguna · Automatizable: no · Impacto técnico: parcial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Qué pasa
yt-dlp is a youtube-dl fork with additional features and fixes. The patch that addressed CVE-2023-40581 attempted to prevent RCE when using `--exec` with `%q` by replacing double quotes with two double quotes. However, this escaping is not sufficient, and still allows expansion of environment variables. Support for output template expansion in `--exec`, along with this vulnerable behavior, was added to `yt-dlp` in version 2021.04.11. yt-dlp version 2024.04.09 fixes this issue by properly escaping `%`. It replaces them with `%%cd:~,%`, a variable that expands to nothing, leaving only the leading percent. It is recommended to upgrade yt-dlp to version 2024.04.09 as soon as possible. Also, always be careful when using `--exec`, because while this specific vulnerability has been patched, using unvalidated input in shell commands is inherently dangerous. For Windows users who are not able to upgrade, avoid using any output template expansion in `--exec` other than `{}` (filepath); if expansion in `--exec` is needed, verify the fields you are using do not contain `"`, `|` or `&`; and/or instead of using `--exec`, write the info json and load the fields from it instead.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Yt-dlp.
- 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 | yt-dlp |
≥ 2021.04.11 < 2024.04.09 |
2024.04.09 |
pip install "yt-dlp>=2024.04.09" |
| PyPI | yt-dlp |
≥ 2021.04.11 < 2024.04.09 |
2024.04.09 |
pip install "yt-dlp>=2024.04.09" |
Según OSV / GitHub Advisories (GHSA-hjq6-52gw-2g7p, PYSEC-2026-2066). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| yt-dlp_project | yt-dlp | ≥ 2021.04.11 < 2024.04.09 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Patch
- github.com Patch
- github.com Product Release Notes
- github.com Product Release Notes
- github.com Not Applicable
- github.com Exploit Vendor Advisory
- www.kb.cert.org Third Party Advisory