OS Command Injection in yt-dlp - CVE-2026-26331

 

OS Command Injection in yt-dlp - CVE-2026-26331

Published: February 23, 2026


Vulnerability identifier: #VU123119
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-26331
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The vulnerability exists due to improper input validation with the "--netrc-cmd" option in yt-dlp. A remote unauthenticated attacker can pass specially crafted data to the application and execute arbitrary OS commands on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

yt-dlp
Fedora
yt-dlp

How to mitigate CVE-2026-26331

Install updates from vendor's website.

yt-dlp - update to 2026.02.21
yt-dlp - addressed in versions 2026.02.21-1.fc42, 2026.02.21-1.fc43, 2026.02.21-1.fc44, 2026.02.21-1.fc45

External References

Related Security Bulletins