SecurityContext

CVE-2025-43858: YoutubeDLSharp - Command Injection

  • Cve: CVE-2025-43858
  • Name: YoutubeDLSharp - Command Injection
  • 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.
  • Impact: Attackers can execute arbitrary commands on the host system via argument injection, potentially leading to remote code execution.
  • Remediation: Update to version 1.1.2 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.2
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L
  • Epss score: 0.00269
  • Epss percentile: 0.19286
  • Assignee: [email protected]
  • Published at: 2025-04-24T18:15:20Z
  • Age in days: 579
  • Modified at: 2026-06-17T09:24:39Z
  • References total: 3
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-43858
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-77Improper Neutralization of Special Elements used in a Command

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/Bluegrams/YoutubeDLSharp/commit/b6051372bd5af30f95f73de47d9bc71c3a07de0f
https://github.com/Bluegrams/YoutubeDLSharp/commit/fdf3256da18d0e2da4a2f33ad4a1b72ff8273a50
https://github.com/Bluegrams/YoutubeDLSharp/security/advisories/GHSA-2jh5-g5ch-43q5

Projects

RepositoryLink kindsIndexedUrl
Bluegrams/YoutubeDLSharpcommit, package, security_advisoryyes/v1/repositories/Bluegrams/YoutubeDLSharp

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts