PT-2024-28047

CVE-2024-38519

·

Published

2024-07-02

·

Updated

2026-10-06

Description by

CVSS 3.1
7.8
High
MetricsAV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions yt-dlp versions prior to 2024.07.01 youtube-dl versions prior to 2024-07-03
Description The issue concerns command-line audio/video downloaders yt-dlp and youtube-dl. Prior to the fixed versions, these tools do not limit the extensions of downloaded files, which could lead to arbitrary filenames being created in the download folder and path traversal on Windows. Since yt-dlp and youtube-dl also read config from the working directory, this could lead to arbitrary code being executed. To mitigate this, users should have .%(ext)s at the end of the output template, trust the websites they download from, and avoid downloading to sensitive locations.
Recommendations For yt-dlp versions prior to 2024.07.01, upgrade to version 2024.07.01 or later. For youtube-dl versions prior to 2024-07-03, update to a nightly build tagged 2024-07-03 or later. For users who cannot upgrade, keep the default output template, ensure the media extension is common, avoid the generic extractor, and use --ignore-config --config-location ... to not load config from common locations.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-22FP-MF44-F2MQ
GHSA-79W7-VH3H-8G4J
GHSA-C6MH-FPJC-4PR3
OPENSUSE-SU-2024:14094-1
PYSEC-2026-2065
PYSEC-2026-3430
Found an issue in the description? Have something to add? Feel free to write us 👾