CVE-2025-54072

yt-dlp allows `--exec` command injection when using placeholder on Windows

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.

Category

7.5
CVSS
Severity: High
CVSS 3.1 •
EPSS 0.11%
Affected: yt-dlp yt-dlp
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2025-54072?
CVE-2025-54072 has been scored as a high severity vulnerability.
How to fix CVE-2025-54072?
To fix CVE-2025-54072, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2025-54072 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2025-54072 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2025-54072?
CVE-2025-54072 affects yt-dlp yt-dlp.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.