{"id":"CVE-2025-54072","published":"2025-07-22T21:34:43Z","modified":"2025-07-23T18:30:06Z","title":"yt-dlp allows `--exec` command injection when using placeholder on Windows","vendor":"yt-dlp","product":"yt-dlp","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0065,"percentile":0.52105,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-45hg-7f49-5h56","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/yt-dlp/yt-dlp/commit/959ac99e98c3215437e573c22d64be42d361e863","tags":["x_refsource_MISC"]},{"url":"https://github.com/yt-dlp/yt-dlp/releases/tag/2025.07.21","tags":["x_refsource_MISC"]}],"priority":{"score":15.7,"factors":[{"name":"EPSS percentile","points":10.42},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"yt-dlp","affectedVersions":[{"vendor":"yt-dlp","product":"yt-dlp","versions":["< 2025.07.21"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-07-23T18:29:54.467763Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-22381","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-yt-dlp-cve-2023-40581","parents":[{"from":"CVE-2023-40581","to":"CVE-2025-54072","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["yt_dlp/postprocessor/exec.py"],"commits":["https://github.com/yt-dlp/yt-dlp/commit/de015e930747165dbb8fcd360f8775fd973b7d6e","https://github.com/yt-dlp/yt-dlp/commit/959ac99e98c3215437e573c22d64be42d361e863"],"basis":"shared function","functions":["parse_cmd"]}]},{"from":"CVE-2024-22423","to":"CVE-2025-54072","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["yt_dlp/postprocessor/exec.py"],"commits":["https://github.com/yt-dlp/yt-dlp/commit/de015e930747165dbb8fcd360f8775fd973b7d6e","https://github.com/yt-dlp/yt-dlp/commit/ff07792676f404ffff6ee61b5638c9dc1a33a37a","https://github.com/yt-dlp/yt-dlp/commit/959ac99e98c3215437e573c22d64be42d361e863"],"basis":"shared function","functions":["parse_cmd"]}]}]}}