CVE-2026-50574
Awaiting Analysis Awaiting Analysis - Queue
Arbitrary File Write in yt-dlp via aria2c

Publication date: 2026-06-23

Last updated on: 2026-06-23

Assigner: GitHub, Inc.

Description
yt-dlp is a command-line audio/video downloader. Prior to 2026.06.09, if aria2c is used as an external downloader for a fragmented manifest format (such as an HLS/DASH stream), yt-dlp passes insufficiently sanitized input to aria2c that allows an attacker to perform an arbitrary file write. On Windows platforms, this can lead to immediate arbitrary code execution. On non-Windows platforms, this can lead to arbitrary code execution upon the next invocation of yt-dlp. This vulnerability is fixed in 2026.06.09.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-23
Last Modified
2026-06-23
Generated
2026-06-23
AI Q&A
2026-06-23
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
yt-dlp yt-dlp 2026.06.09
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-74 The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

The CVE-2026-50574 vulnerability in yt-dlp occurs when yt-dlp uses aria2c as an external downloader for fragmented manifest formats like HLS or DASH streams. yt-dlp passes insufficiently sanitized input to aria2c, which allows an attacker to inject malicious options into aria2c's input file.

On Windows platforms, this can lead to immediate arbitrary code execution by writing a malicious executable (such as ffmpeg.exe) to the current directory. On non-Windows platforms, it can lead to arbitrary code execution upon the next invocation of yt-dlp by writing a malicious configuration file (yt-dlp.conf) containing harmful arguments.

This vulnerability is fixed in yt-dlp version 2026.06.09 by removing support for downloading fragmented manifests with aria2c.

Impact Analysis

This vulnerability can allow an attacker to execute arbitrary code on your system if you use yt-dlp with aria2c for downloading fragmented manifests.

  • On Windows, immediate arbitrary code execution can occur, potentially allowing an attacker to run malicious programs with your user privileges.
  • On other platforms, arbitrary code execution can happen the next time yt-dlp is run, which could lead to unauthorized actions or compromise of your system.

The attack requires user interaction but no special privileges, and the overall severity is high (CVSS score 8.3).

Detection Guidance

Detection of this vulnerability involves checking if yt-dlp is used with aria2c as an external downloader for fragmented manifest formats such as HLS or DASH streams.

You can verify the yt-dlp version installed on your system to see if it is prior to 2026.06.09, which is vulnerable.

  • Run the command: yt-dlp --version

Additionally, inspect if yt-dlp is configured to use aria2c as the external downloader.

  • Check yt-dlp configuration or command-line usage for the --external-downloader aria2c option.

On Windows, look for suspicious files like ffmpeg.exe in the current directory created by yt-dlp, which may indicate exploitation.

On non-Windows platforms, check for malicious yt-dlp.conf files containing harmful --exec arguments.

Mitigation Strategies

The primary mitigation is to upgrade yt-dlp to version 2026.06.09 or later, where the vulnerability is fixed.

If upgrading immediately is not possible, use the workaround by avoiding aria2c for fragmented manifests and instead use the native downloader.

  • Run yt-dlp with the option: --downloader dash,m3u8:native

Avoid using aria2c as an external downloader for fragmented manifest formats until the update is applied.

Also, monitor and remove any suspicious files such as malicious executables or configuration files created by yt-dlp.

Compliance Impact

The provided information does not specify how the CVE-2026-50574 vulnerability in yt-dlp affects compliance with common standards and regulations such as GDPR or HIPAA.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-50574. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart