Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. yt-dlp
  4. ›
  5. CVE-2024-38519

CVE-2024-38519: yt-dlp File system modification and RCE through improper file-extension sanitization

July 2, 2024

yt-dlp does 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 also reads config from the working directory (and on Windows executables will be executed from the yt-dlp directory) this could lead to arbitrary code being executed.

References

  • github.com/advisories/GHSA-79w7-vh3h-8g4j
  • github.com/yt-dlp/yt-dlp
  • github.com/yt-dlp/yt-dlp/commit/5ce582448ececb8d9c30c8c31f58330090ced03a
  • github.com/yt-dlp/yt-dlp/releases/tag/2024.07.01
  • github.com/yt-dlp/yt-dlp/security/advisories/GHSA-79w7-vh3h-8g4j
  • nvd.nist.gov/vuln/detail/CVE-2024-38519

Code Behaviors & Features

Detect and mitigate CVE-2024-38519 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2024.07.01

Fixed versions

  • 2024.07.01

Solution

Upgrade to version 2024.07.01 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Source file

pypi/yt-dlp/CVE-2024-38519.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:09 +0000.