cve.bz

CVE-2024-38519

7.8 highEPSS 0.3%Fix available

High (7.8). EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in yt-dlp 2024.07.01.

On this page
`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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 26th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2024-07-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-669 Incorrect Resource Transfer Between Spheres
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-38519 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-38519?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-38519?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-38519 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
yt-dlpfrom < 2024.07.01 before 2024.07.01
ytdl-org youtube-dlfrom >= 2015.01.25 through 2021.12.17
ytdl-org youtube-dlfrom nightly before 2024-07-03

Fixed in

ProductFixed in
ytdl-org youtube-dld42a222

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-79w7-vh3h-8g4jPyPIyt-dlp<2024.07.012024.07.01
PYSEC-2026-2065PyPIyt-dlp<2024.07.012024.07.01

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12yt-dlp, youtube-dlno fix listedDEBIAN-CVE-2024-38519
Debian13, 14yt-dlp2024.07.01-1DEBIAN-CVE-2024-38519
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 2 moreyt-dlpno fix listedUBUNTU-CVE-2024-38519
openSUSETumbleweedyt-dlp2024.07.01-1.1openSUSE-SU-2024:14094-1
Alpinev3.21, v3.22, v3.23 and 1 moreyt-dlp2024.07.01-r0ALPINE-CVE-2024-38519

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE · Alpine.

References

Check your stackJSON