CVE-2025-54072
published high CVSS 3.1 · 7.5yt-dlp allows `--exec` command injection when using placeholder on Windows
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| yt-dlp | — | yt-dlp< 2025.07.21 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | yt-dlp | Fixed | 0-r0 | Package fix record |
| Alpine Linux | v3.22 | yt-dlp | Fixed | 0-r0 | Package fix record |
| Alpine Linux | v3.23 | yt-dlp | Fixed | 0-r0 | Package fix record |
| Alpine Linux | v3.24 | yt-dlp | Fixed | 0-r0 | Package fix record |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| yt-dlp | yt-dlp | < 2025.07.21 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-78 CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
3Provider assertions
2GitHub_M · cna
yt-dlp allows `--exec` command injection when using placeholder on Windows
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 3cc720c5f8be81795990fd27779f0087439b4e8717a000d1a1d109351ae98f2e
- Ingested
- 23 Sep 2026, 08:52:52 UTC
- Source record
- Official CVE record