Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-43858

CRITICAL 9.2EPSS 24%

YoutubeDLSharp allows command injection on windows system due to non sanitized arguments

Also known as GHSA-2jh5-g5ch-43q5

Mitigation

  • Upgrade YoutubeDLSharp to 1.1.2 or later.

Who should check

  • Projects that depend on NuGet package YoutubeDLSharp (>= 1.0.0-beta4, < 1.1.2)
  • Anyone running Bluegrams YoutubeDLSharp >= 1.0.0-beta4, < 1.1.2

Vulnerability facts

Affected
YoutubeDLSharp >= 1.0.0-beta4, < 1.1.2
Fixed in
1.1.2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
9.2 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: Low
EPSS
0.38% chance of exploitation in 30 days (percentile 24, 2026-11-26)
CWE
CWE-77, CWE-78
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
NuGet YoutubeDLSharp>= 1.0.0-beta4, < 1.1.21.1.2osv
Bluegrams YoutubeDLSharp>= 1.0.0-beta4, < 1.1.2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-43858. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-43858.md
Affected: YoutubeDLSharp >= 1.0.0-beta4, < 1.1.2
Fixed in: 1.1.2

Steps:
1. Search this machine and project for YoutubeDLSharp (NuGet), Bluegrams YoutubeDLSharp: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-43858 being exploited?

There is no confirmed exploitation: CVE-2025-43858 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.38% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-43858?

Critical: CVSS 9.2 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2025-43858?

YoutubeDLSharp >= 1.0.0-beta4, < 1.1.2.

Is there a fix for CVE-2025-43858?

Yes. Fixed in 1.1.2. Upgrade YoutubeDLSharp to 1.1.2 or later.

How do I check if I'm affected by CVE-2025-43858?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors