CVE-2025-54072
Linux Alpine vulnerability analysis and mitigation

Overview

CVE-2025-54072 affects yt-dlp, a feature-rich command-line audio/video downloader, in versions 2025.06.25 and below. The vulnerability was discovered and disclosed on July 22, 2025, and involves insufficient sanitization of filepath when using the --exec option on Windows with the default placeholder, potentially allowing for remote code execution (GitHub Advisory, NVD).

Technical details

The vulnerability occurs due to incorrect sanitization rules being applied to the expanded filepath in the --exec postprocessor. The code fails to pass shell=True to shell_quote, resulting in improper escaping rules being applied. While yt-dlp's sanitization replaces any " or : characters in the filepath with full-width counterparts, the vulnerability can be exploited when an environment variable containing an odd number of " characters is present. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (High) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H (GitHub Advisory).

Impact

The vulnerability could allow attackers to achieve remote code execution on Windows systems when specific conditions are met. However, the impact is considered minimal as exploitation requires a variable containing an odd number of " characters to be set in the user's environment, which is uncommon. No maliciously crafted metadata targeting this vulnerability has been found in the wild (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 2025.07.21 by applying new escaping rules to the placeholder expansion. Windows users who cannot upgrade immediately should avoid using --exec altogether. Alternative workarounds include using --write-info-json or --dump-json options with an external script or command line consuming the JSON output (GitHub Advisory, GitHub Release).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management