
CVE catalog
CVE-2024-38519
youtube-dl: CVE-2024-38519
- Severity
- High
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.33% · Oct 25, 2026
`yt-dlp` and `youtube-dl` are command-line audio/video downloaders. Prior to the fixed versions, `yt-dlp` and `youtube-dl` 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 (and on Windows executables will be executed from the `yt-dlp` or `youtube-dl` directory), this could lead to arbitrary code being executed. `yt-dlp` version 2024.07.01 fixes this issue by whitelisting the allowed extensions. `youtube-dl` fixes this issue in commit `d42a222` on the `master` branch and in nightly builds tagged 2024-07-03 or later. This might mean some very uncommon extensions might not get downloaded, however it will also limit the possible exploitation surface. In addition to upgrading, have `.%(ext)s` at the end of the output template and make sure the user trusts the websites that they are downloading from. Also, make sure to never download to a directory within PATH or other sensitive locations like one's user directory, `system32`, or other binaries locations. For users who are not able to upgrade, keep the default output template (`-o "%(title)s [%(id)s].%(ext)s`); make sure the extension of the media to download is a common video/audio/sub/... one; try to avoid the generic extractor; and/or use `--ignore-config --config-location ...` to not load config from common locations.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | yt-dlp | sid | 2026.10.21-1 | fixed |
| Debian | yt-dlp | forky | 2026.10.21-1 | fixed |
| Debian | yt-dlp | trixie | 2025.04.30-1 | fixed |
| Debian | yt-dlp | bookworm | 2023.03.04-1 | vulnerable |
| Debian | youtube-dl | bookworm | 2021.12.17-2 | vulnerable |
| PyPI | yt-dlp | Not reported | 2024.07.01 | fixed |
| Opensuse | yt-dlp | tumbleweed | 2024.07.01-1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | yt-dlp | source | sid | 2024.07.01-1 | unimportant | Not reported | Not reported |
| Debian | yt-dlp | source | forky | 2024.07.01-1 | unimportant | Not reported | Not reported |
| Debian | yt-dlp | source | trixie | 2024.07.01-1 | unimportant | Not reported | Not reported |
| Debian | yt-dlp | source | bookworm | (unfixed) | unimportant | Not reported | Not reported |
| Debian | youtube-dl | source | bookworm | (unfixed) | unimportant | Not reported | [1079502] |
| PyPI | yt-dlp | PyPI | Not reported | 2024.07.01 | Not reported | Not reported | Not reported |
| Opensuse | yt-dlp | rpm | tumbleweed | 2024.07.01-1.1 | Not reported | OPENSUSE-SU-2024:14094-1 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [youtube-dl]Affected
Details (2)
2021.12.17-2· all · bookwormAffected
dsa · youtube-dl · debian · bookworm; dsa · youtube-dl · debian · 12
2021.12.17-2· all · bookwormAffected
dsa · youtube-dl · debian · bookworm; dsa · youtube-dl · debian · 12
- [yt-dlp]Affected
Details (4)
2023.03.04-1· all · bookwormAffected
dsa · yt-dlp · debian · bookworm; dsa · yt-dlp · debian · 12
2023.03.04-1· all · bookwormAffected
dsa · yt-dlp · debian · bookworm; dsa · yt-dlp · debian · 12
2025.04.30-1~bpo12+1· all · bookworm-backportsAffected
dsa · yt-dlp · debian · bookworm; dsa · yt-dlp · debian · 12
2025.04.30-1~bpo12+1· all · bookworm-backportsAffected
dsa · yt-dlp · debian · bookworm; dsa · yt-dlp · debian · 12
[openSUSE Tumbleweed]
- [python313-yt-dlp]Unknown
Source package: [yt-dlp]
Details (1)
2026.08.19-1.1· noarch · tumbleweedUnknown · Fixed:
2024.07.01-1.1Version impact unknown
dsa · yt-dlp · opensuse · tumbleweed
- [yt-dlp-youtube-dl]Unknown
Source package: [yt-dlp]
Details (1)
2026.08.19-1.1· noarch · tumbleweedUnknown · Fixed:
2024.07.01-1.1Version impact unknown
dsa · yt-dlp · opensuse · tumbleweed
- [yt-dlp]Fixed
Source package: [yt-dlp]
Details (1)
2026.08.19-1.1· noarch · tumbleweedFixed · Fixed:
2024.07.01-1.1dsa · yt-dlp · opensuse · tumbleweed
[Debian 13 (Trixie)]
- [yt-dlp]Fixed
Details (4)
2025.04.30-1· all · trixieFixed · Fixed:
2024.07.01-1dsa · yt-dlp · debian · 13
2025.04.30-1· all · trixieFixed · Fixed:
2024.07.01-1dsa · yt-dlp · debian · 13
2026.08.19-1~bpo13+1· all · trixie-backportsFixed · Fixed:
2024.07.01-1dsa · yt-dlp · debian · 13
2026.08.19-1~bpo13+1· all · trixie-backportsFixed · Fixed:
2024.07.01-1dsa · yt-dlp · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2024_14094-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-38519]
- [https://osv.dev/vulnerability/GHSA-79w7-vh3h-8g4j]
- [https://osv.dev/vulnerability/PYSEC-2026-2065]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:14094-1]
- [https://security-tracker.debian.org/tracker/CVE-2024-38519]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX]