{"id":"CVE-2025-54072","aliases":["CVE-2025-54072"],"related":[],"kind":"vulnerability","state":"published","title":"yt-dlp allows `--exec` command injection when using placeholder on Windows","summary":"yt-dlp is a feature-rich command-line audio/video downloader. In versions 2025.06.25 and below, when the --exec option is used on Windows with the default placeholder (or {}), insufficient sanitization is applied to the expanded filepath, allowing for remote code execution. This is a bypass of the mitigation for CVE-2024-22423 where the default placeholder and {} were not covered by the new escaping rules. Windows users who are unable to upgrade should avoid using --exec altogether. Instead, the --write-info-json or --dump-json options could be used, with an external script or command line consuming the JSON output. This is fixed in version 2025.07.21.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"yt-dlp is a feature-rich command-line audio/video downloader. In versions 2025.06.25 and below, when the --exec option is used on Windows with the default placeholder (or {}), insufficient sanitization is applied to the expanded filepath, allowing for remote code execution. This is a bypass of the mitigation for CVE-2024-22423 where the default placeholder and {} were not covered by the new escaping rules. Windows users who are unable to upgrade should avoid using --exec altogether. Instead, the --write-info-json or --dump-json options could be used, with an external script or command line consuming the JSON output. This is fixed in version 2025.07.21.","source":"cvelist"},{"lang":"es","text":"yt-dlp es un descargador de audio y vídeo de línea de comandos con numerosas funciones. En las versiones 2025.06.25 y anteriores, al usar la opción --exec en Windows con el marcador de posición predeterminado (o {}), la ruta de archivo expandida no se depura lo suficiente, lo que permite la ejecución remota de código. Esto evita la mitigación de CVE-2024-22423, donde el marcador de posición predeterminado y {} no estaban cubiertos por las nuevas reglas de escape. Los usuarios de Windows que no puedan actualizar deberían evitar usar --exec. En su lugar, podrían usar las opciones --write-info-json o --dump-json, con un script externo o una línea de comandos que consume la salida JSON. Esto se solucionó en la versión 2025.07.21.","source":"nvd"}],"published":"2025-07-22T21:34:43.408Z","modified":"2026-06-17T09:39:22.147Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"version":"< 2025.07.21","status":"affected"}],"vendor":"yt-dlp","product":"yt-dlp","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"2025.07.21"}],"vendor":"yt-dlp_project","product":"yt-dlp","cpe":"cpe:2.3:a:yt-dlp_project:yt-dlp:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-45hg-7f49-5h56","tags":["vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/yt-dlp/yt-dlp/commit/959ac99e98c3215437e573c22d64be42d361e863","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/yt-dlp/yt-dlp/releases/tag/2025.07.21","tags":["release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-07-23T18:29:54.467Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-54072","url":"https://www.cve.org/CVERecord?id=CVE-2025-54072","licence":"CVE Terms of Use","modified":"2025-07-23T18:30:06.761Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-54072","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54072","licence":"Public domain","modified":"2026-06-17T09:39:22.147Z"}],"updatedAt":"2026-11-25T22:59:01.589Z","epss":{"score":0.0065,"percentile":0.52471,"date":"2026-12-01T12:00:22.000Z"}}