CVE-2025-54072 Details
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.
A remote code execution vulnerability exists in yt-dlp, a command-line audio/video downloader, when the --exec option is used on Windows with the default placeholder. In versions through 2025.06.25, the expanded filepath from the placeholder received inadequate sanitization, creating an opportunity for code execution. This issue bypasses the mitigation implemented for CVE-2024-22423, as the default placeholder was not addressed by the new escaping rules. Users unable to upgrade should refrain from using --exec and can instead utilize the --write-info-json or --dump-json options, with an external script processing the JSON output.
Users should upgrade to yt-dlp version 2025.07.21 or later. For those unable to upgrade, it is advised to avoid using the --exec option on Windows.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 23, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| yt-dlp project yt-dlp | < 2025.07.21 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 9, 2025 | Initial Analysis | [email protected] |
| Jul 22, 2025 | New CVE Received | [email protected] |