The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-54072

CVE-2025-54072: Yt-dlp RCE Vulnerability via --exec Option

CVE-2025-54072 is a remote code execution vulnerability in Yt-dlp affecting Windows users via the --exec option. Attackers can exploit insufficient sanitization to execute arbitrary code. This guide covers technical details, affected versions, impact, and mitigation strategies.

Published: April 28, 2026

CVE-2025-54072 Overview

CVE-2025-54072 is a command injection vulnerability in yt-dlp, the popular 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 vulnerability represents a bypass of the previous mitigation implemented for CVE-2024-22423, where the default placeholder and {} were not covered by the new escaping rules.

Critical Impact

This command injection vulnerability allows remote attackers to execute arbitrary code on Windows systems running vulnerable versions of yt-dlp when the --exec option is used, potentially leading to complete system compromise.

Affected Products

  • yt-dlp versions 2025.06.25 and below
  • Windows installations using the --exec option with default placeholders
  • yt-dlp configurations using {} placeholder in exec commands

Discovery Timeline

  • 2025-07-22 - CVE-2025-54072 published to NVD
  • 2025-07-21 - yt-dlp releases security patch in version 2025.07.21
  • 2025-10-09 - Last updated in NVD database

Technical Details for CVE-2025-54072

Vulnerability Analysis

This vulnerability is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command, commonly known as OS Command Injection). The flaw exists in how yt-dlp handles filename placeholders when executing post-processing commands on Windows systems.

When a user downloads media using yt-dlp with the --exec option, the tool substitutes placeholders like {} with the actual filepath of the downloaded file. The vulnerability arises because an attacker can craft a malicious video URL or metadata that results in a filename containing special shell characters. When this filename is expanded into the exec command without proper sanitization, it allows arbitrary command execution.

The attack requires the target user to download malicious content while using the --exec flag, making it a network-based attack vector. While the attack complexity is considered high due to requiring specific user configurations, successful exploitation leads to high impact on confidentiality, integrity, and availability of the affected system.

Root Cause

The root cause of CVE-2025-54072 lies in the incomplete fix for the previous vulnerability CVE-2024-22423. While the earlier patch implemented escaping rules for certain placeholder types, the default placeholder and the explicit {} placeholder were inadvertently excluded from these sanitization routines. This oversight allowed attackers to bypass the security controls by targeting the default placeholder behavior on Windows systems, where command-line argument parsing handles special characters differently than Unix-like systems.

Attack Vector

The attack leverages the network-accessible nature of media content that yt-dlp downloads. An attacker can host malicious media files with specially crafted metadata that results in filenames containing shell metacharacters. When a victim uses yt-dlp with the --exec option to download and process this content, the unsanitized filename is expanded into the command line, resulting in command injection.

The attack scenario involves:

  1. An attacker creates or hosts media content with malicious metadata designed to produce a harmful filename
  2. The victim downloads this content using yt-dlp with --exec and the default placeholder
  3. The expanded filepath containing shell metacharacters is passed to the system shell without proper escaping
  4. Arbitrary commands embedded in the filename are executed with the privileges of the yt-dlp process

Technical details about the exploitation mechanism can be found in the GitHub Security Advisory.

Detection Methods for CVE-2025-54072

Indicators of Compromise

  • Unusual process spawning from yt-dlp parent processes on Windows systems
  • Unexpected network connections or file system modifications following yt-dlp downloads
  • Command-line arguments containing suspicious patterns or encoded shell commands in yt-dlp invocations
  • Downloaded media files with unusual or suspicious filenames containing shell metacharacters

Detection Strategies

  • Monitor for yt-dlp processes using the --exec flag followed by unexpected child process creation
  • Implement file integrity monitoring on systems where yt-dlp is routinely used
  • Deploy endpoint detection rules to identify command injection patterns in process command lines
  • Review yt-dlp configuration files and scripts for usage of vulnerable placeholder patterns

Monitoring Recommendations

  • Enable verbose logging for yt-dlp operations to track downloaded content metadata
  • Configure security tools to alert on suspicious process hierarchies originating from media download tools
  • Establish baseline behavior for yt-dlp usage patterns to identify anomalies
  • Monitor for execution of shells or interpreters (cmd.exe, powershell.exe) as child processes of yt-dlp

How to Mitigate CVE-2025-54072

Immediate Actions Required

  • Upgrade yt-dlp to version 2025.07.21 or later immediately on all Windows systems
  • Audit existing automation scripts and configurations for usage of the --exec option with vulnerable placeholders
  • Temporarily disable any automation using --exec until the upgrade is complete
  • Review recent yt-dlp downloads for potentially malicious content

Patch Information

The vulnerability is fixed in yt-dlp version 2025.07.21. The security patch addresses the insufficient sanitization by properly escaping filenames when they are expanded into exec commands, covering the default placeholder and {} that were previously missed. Users should update to this version or later to remediate the vulnerability.

The specific fix can be reviewed in the GitHub Commit, and the complete release notes are available in the yt-dlp Release Notes.

Workarounds

  • Avoid using the --exec option entirely until upgrading to the patched version
  • Use --write-info-json or --dump-json options instead, and process the JSON output with an external script that properly handles filenames
  • If exec functionality is required, use explicit placeholders with proper quoting rather than the default placeholder
  • Implement application whitelisting to prevent unauthorized command execution on systems running yt-dlp
bash
# Safe alternative: Use JSON output instead of --exec
# Instead of:
# yt-dlp --exec "process {}" <URL>

# Use this safe alternative:
yt-dlp --write-info-json <URL>
# Then process the JSON file with an external script that properly sanitizes filenames

# Or use dump-json for piping to external processors:
yt-dlp --dump-json <URL> | your-safe-processor-script

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechYt Dlp

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.18%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Release Notes
  • Vendor Resources
  • GitHub Commit Details

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-26331: Yt-dlp Command Injection RCE Vulnerability

  • CVE-2024-22423: Yt-dlp Command Injection RCE Vulnerability

  • CVE-2024-38519: yt-dlp Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English