CVE-2025-43858
published critical CVSS 3.1 · 9.2YoutubeDLSharp allows command injection on windows system due to non sanitized arguments
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Bluegrams | — | YoutubeDLSharp>= 1.0.0-beta4, < 1.1.2 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.2 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Bluegrams | YoutubeDLSharp | >= 1.0.0-beta4, < 1.1.2 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-77 CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
- CWE-78 CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
3Provider assertions
2GitHub_M · cna
YoutubeDLSharp allows command injection on windows system due to non sanitized arguments
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- cd6a4ee343999d80271e4e0799309c9296213d64474f7a65464422f04541cf1b
- Ingested
- 23 Sep 2026, 08:49:03 UTC
- Source record
- Official CVE record