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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-77",
"CWE-78"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/43xxx/CVE-2025-43858.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "1.0.0-beta4"
},
{
"fixed": "1.1.2"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
}
]
},
{
"extracted_events": [
{
"range": [
{
"fixed": "1.1.2"
},
{
"fixed": "1.1.2"
},
{
"last_affected": "1.0.0-beta4"
}
],
"source": "DESCRIPTION"
}
]
}
]
}{
"extracted_events": [
{
"range": [
{
"fixed": "b6051372bd5af30f95f73de47d9bc71c3a07de0f"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "fdf3256da18d0e2da4a2f33ad4a1b72ff8273a50"
}
],
"source": "REFERENCES_COMMIT"
}
]
}