# CVE-2025-54072: yt-dlp allows `--exec` command injection when using placeholder on Windows

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.65%, higher than 52% of CVEs (2026-12-01)
- Published: 2025-07-22T21:34:43.408Z
- Modified: 2026-06-17T09:39:22.147Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- yt-dlp yt-dlp: < 2025.07.21
- yt-dlp_project yt-dlp: before 2025.07.21

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-45hg-7f49-5h56> (vendor-advisory)
- <https://github.com/yt-dlp/yt-dlp/commit/959ac99e98c3215437e573c22d64be42d361e863> (patch)
- <https://github.com/yt-dlp/yt-dlp/releases/tag/2025.07.21> (release-notes)

## Sources

- CVE List: [CVE-2025-54072](https://www.cve.org/CVERecord?id=CVE-2025-54072), CVE Terms of Use, modified 2025-07-23
- NVD: [CVE-2025-54072](https://nvd.nist.gov/vuln/detail/CVE-2025-54072), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-54072 · Whole record: https://cve.day/CVE-2025-54072.json · Rebuilt by cve.day 2026-11-25T22:59:01.589Z
