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

- Severity: Critical 9.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-04-23T22:25:20.000Z
- Modified: 2026-09-10T03:50:57.028Z
- Also known as: GHSA-2jh5-g5ch-43q5
- Weaknesses: CWE-77, CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- Bluegrams YoutubeDLSharp: >= 1.0.0-beta4, < 1.1.2
- YoutubeDLSharp (NuGet): from 1.0.0-beta4 before 1.1.2

## Every score

- GitHub_M: CVSS:3.1 9.2 Critical `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 Critical `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L`

## References

- <https://github.com/Bluegrams/YoutubeDLSharp/security/advisories/GHSA-2jh5-g5ch-43q5> (exploit, web)
- <https://github.com/Bluegrams/YoutubeDLSharp/commit/b6051372bd5af30f95f73de47d9bc71c3a07de0f> (web)
- <https://github.com/Bluegrams/YoutubeDLSharp/commit/fdf3256da18d0e2da4a2f33ad4a1b72ff8273a50> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-43858> (advisory)
- <https://github.com/Bluegrams/YoutubeDLSharp> (package)

## Sources

- CVE List: [CVE-2025-43858](https://www.cve.org/CVERecord?id=CVE-2025-43858), CVE Terms of Use, modified 2025-04-24
- GitHub Advisory Database: [GHSA-2jh5-g5ch-43q5](https://github.com/advisories/GHSA-2jh5-g5ch-43q5), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-43858](https://nvd.nist.gov/vuln/detail/CVE-2025-43858), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-43858 · Whole record: https://cve.day/CVE-2025-43858.json · Rebuilt by cve.day 2026-11-25T22:58:56.911Z
