{"id":"CVE-2025-43858","published":"2025-04-24T18:04:48Z","modified":"2025-04-24T19:04:13Z","title":"YoutubeDLSharp allows command injection on windows system due to non sanitized arguments","vendor":"Bluegrams","product":"YoutubeDLSharp","tier":"tail","description":{"text":"YoutubeDLSharp is a wrapper for the command-line video downloaders youtube-dl and yt-dlp. In versions starting from 1.0.0-beta4 and prior to 1.1.2, an unsafe conversion of arguments allows the injection of a malicious commands when starting `yt-dlp` from a commands prompt running on Windows OS with the `UseWindowsEncodingWorkaround` value defined to true (default behavior). If a user is using built-in methods from the YoutubeDL.cs file, the value is true by default and a user cannot disable it from these methods. This issue has been patched in version 1.1.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.2,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00381,"percentile":0.23969,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"},{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/Bluegrams/YoutubeDLSharp/security/advisories/GHSA-2jh5-g5ch-43q5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Bluegrams/YoutubeDLSharp/commit/b6051372bd5af30f95f73de47d9bc71c3a07de0f","tags":["x_refsource_MISC"]},{"url":"https://github.com/Bluegrams/YoutubeDLSharp/commit/fdf3256da18d0e2da4a2f33ad4a1b72ff8273a50","tags":["x_refsource_MISC"]}],"priority":{"score":11.2,"factors":[{"name":"EPSS percentile","points":4.79},{"name":"CVSS severity","points":6.44}]},"vendorSlug":"bluegrams","affectedVersions":[{"vendor":"Bluegrams","product":"YoutubeDLSharp","versions":[">= 1.0.0-beta4, < 1.1.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-04-24T19:03:58.754946Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"YoutubeDLSharp","vulnerableRanges":[">=1.0.0-beta4, <1.1.2"],"patched":["1.1.2"],"from":["GHSA-2jh5-g5ch-43q5"],"provenance":"source"}],"summary":{"text":"YoutubeDLSharp, a Bluegrams .NET wrapper for the yt-dlp and youtube-dl video downloaders, fails to sanitise arguments it passes on Windows when the UseWindowsEncodingWorkaround setting is true, which is the default and cannot be disabled through the built-in YoutubeDL.cs methods, in versions from 1.0.0-beta4 before 1.1.2. A local user with no privileges can inject arbitrary operating system commands through these arguments when yt-dlp is launched from a command prompt, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:58:12Z"},"euvd":{"id":"EUVD-2025-11986","exploited":false,"provenance":"source"}}