---
title: "CVE-2025-43858: YoutubeDLSharp allows command injection on windows system due to non sanitized arguments"
url: https://erroneo.us/security/cve/CVE-2025-43858/
description: "CVE-2025-43858 (YoutubeDLSharp (NuGet)): YoutubeDLSharp is a wrapper for the command-line video downloaders youtube-dl and yt-dlp. In versions starting from…"
type: vulnerability-record
section: "Security Digest"
date_published: 2025-04-24
date_modified: 2025-04-24
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2025-43858"
kev: false
cvss: 9.2
epss: 0.00264
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2025-43858: YoutubeDLSharp allows command injection on windows system due to non sanitized arguments

**Signal:** Critical, preconditions apply. Severe if exploited, but exploitation needs conditions that may not apply to you. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 0.3% , percentile 17: FIRST’s model estimates a 0.3% chance of exploitation activity in the next 30 days, higher than 17% of all scored CVEs (low). EPSS is a probability, not a verdict.
- Needs local access needed. Lower urgency for most teams unless an attacker could already run code on the machine.
- Only applies if your dependency tree includes YoutubeDLSharp (NuGet) >= 1.0.0-beta4, < 1.1.2, fixed in 1.1.2 . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- NuGet `YoutubeDLSharp` >= 1.0.0-beta4, < 1.1.2 → fixed: 1.1.2

## Affected products (CVE record)

- Bluegrams YoutubeDLSharp: >= 1.0.0-beta4, < 1.1.2

## Severity

- GitHub_M CVSS 3.1: 9.2 `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L`
- GitHub CVSS 3.1: 9.2 `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable no , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.26% probability of exploitation activity in the next 30 days; percentile 17.

## Sources

- [GitHub Advisory GHSA-2jh5-g5ch-43q5](https://github.com/advisories/GHSA-2jh5-g5ch-43q5)
- [CVE.org record CVE-2025-43858](https://www.cve.org/CVERecord?id=CVE-2025-43858)
- [NVD entry CVE-2025-43858](https://nvd.nist.gov/vuln/detail/CVE-2025-43858)
- [github.com](https://github.com/Bluegrams/YoutubeDLSharp/security/advisories/GHSA-2jh5-g5ch-43q5)
- [github.com](https://github.com/Bluegrams/YoutubeDLSharp/commit/b6051372bd5af30f95f73de47d9bc71c3a07de0f)
- [github.com](https://github.com/Bluegrams/YoutubeDLSharp/commit/fdf3256da18d0e2da4a2f33ad4a1b72ff8273a50)

---
Source page: https://erroneo.us/security/cve/CVE-2025-43858/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
