CVE-2025-43858CWE-77CWE-78

YoutubeDLSharp allows command injection on windows system due to non sanitized arguments

Critical · published April 24, 2025

CVSS v3.1
9.2
EPSS
0%
Percentile
17.3
In the wild
Unconfirmed
What it is

🚨 A sneaky flaw in YoutubeDLSharp could let an attacker run malicious commands just by starting a download! Think of it like a restaurant where the chef blindly trusts any order handed to them without checking for allergens — one wrong command could cause chaos in the kitchen! 🍽️ An attacker could exploit this vulnerability to execute harmful commands on your Windows system, potentially leading to data loss, corruption, or even a complete system compromise. It's like leaving your front door wide open, inviting trouble right into your living room!

Put simply

Think of it like a restaurant where the chef blindly trusts any order handed to them without checking for allergens — one wrong command could cause chaos in the kitchen! 🍽️ This vulnerability stems from an unsafe argument conversion in YoutubeDLSharp, specifically when using the `UseWindowsEncodingWorkaround` feature set to true, which is the default setting. This allows unauthorized command injections when invoking `yt-dlp` from the command prompt.

What to do

An attacker could exploit this vulnerability to execute harmful commands on your Windows system, potentially leading to data loss, corruption, or even a complete system compromise. It's like leaving your front door wide open, inviting trouble right into your living room! Patch to version 1.1.2 immediately to close this critical vulnerability. Be sure to review your implementation of YoutubeDLSharp to ensure you’re not relying on this risky default behavior. Stay vigilant and consider conducting a security audit for any other potential loopholes! You've got this! Following these steps will help secure your setup in no time. 🛡️

The record
Technical detail
CVSS v3.1
9.2 · CRITICAL
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L
CVSS v4.0
Not supplied
EPSS
0.00264 · 17.3th percentile
Weaknesses
CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection'); CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2025-04-24T18:04Z
EPSS history
Timeline
  • 24 APR 18:04Z
    YoutubeDLSharp allows command injection on windows system due to non sanitized arguments
    cvelistv5