CVE catalog

CVE-2024-38519

youtube-dl: CVE-2024-38519

[CVE catalog]

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.

DistributionPackageReleaseVersionStatus
Debianyt-dlpsid2026.10.21-1fixed
Debianyt-dlpforky2026.10.21-1fixed
Debianyt-dlptrixie2025.04.30-1fixed
Debianyt-dlpbookworm2023.03.04-1vulnerable
Debianyoutube-dlbookworm2021.12.17-2vulnerable
PyPIyt-dlpNot reported2024.07.01fixed
Opensuseyt-dlptumbleweed2024.07.01-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianyt-dlpsourcesid2024.07.01-1unimportantNot reportedNot reported
Debianyt-dlpsourceforky2024.07.01-1unimportantNot reportedNot reported
Debianyt-dlpsourcetrixie2024.07.01-1unimportantNot reportedNot reported
Debianyt-dlpsourcebookworm(unfixed)unimportantNot reportedNot reported
Debianyoutube-dlsourcebookworm(unfixed)unimportantNot reported[1079502]
PyPIyt-dlpPyPINot reported2024.07.01Not reportedNot reportedNot reported
Opensuseyt-dlprpmtumbleweed2024.07.01-1.1Not reportedOPENSUSE-SU-2024:14094-1Not reported

[Debian bug #1079502]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [youtube-dl]Affected
    Details (2)
    • 2021.12.17-2 · all · bookworm

      Affected

      dsa · youtube-dl · debian · bookworm; dsa · youtube-dl · debian · 12

    • 2021.12.17-2 · all · bookworm

      Affected

      dsa · youtube-dl · debian · bookworm; dsa · youtube-dl · debian · 12

  • [yt-dlp]Affected
    Details (4)
    • 2023.03.04-1 · all · bookworm

      Affected

      dsa · yt-dlp · debian · bookworm; dsa · yt-dlp · debian · 12

    • 2023.03.04-1 · all · bookworm

      Affected

      dsa · yt-dlp · debian · bookworm; dsa · yt-dlp · debian · 12

    • 2025.04.30-1~bpo12+1 · all · bookworm-backports

      Affected

      dsa · yt-dlp · debian · bookworm; dsa · yt-dlp · debian · 12

    • 2025.04.30-1~bpo12+1 · all · bookworm-backports

      Affected

      dsa · yt-dlp · debian · bookworm; dsa · yt-dlp · debian · 12

[openSUSE Tumbleweed]

  • Source package: [yt-dlp]

    Details (1)
    • 2026.08.19-1.1 · noarch · tumbleweed

      Unknown · Fixed: 2024.07.01-1.1

      Version impact unknown

      dsa · yt-dlp · opensuse · tumbleweed

  • Source package: [yt-dlp]

    Details (1)
    • 2026.08.19-1.1 · noarch · tumbleweed

      Unknown · Fixed: 2024.07.01-1.1

      Version impact unknown

      dsa · yt-dlp · opensuse · tumbleweed

  • [yt-dlp]Fixed

    Source package: [yt-dlp]

    Details (1)
    • 2026.08.19-1.1 · noarch · tumbleweed

      Fixed · Fixed: 2024.07.01-1.1

      dsa · yt-dlp · opensuse · tumbleweed

[Debian 13 (Trixie)]

  • [yt-dlp]Fixed
    Details (4)
    • 2025.04.30-1 · all · trixie

      Fixed · Fixed: 2024.07.01-1

      dsa · yt-dlp · debian · 13

    • 2025.04.30-1 · all · trixie

      Fixed · Fixed: 2024.07.01-1

      dsa · yt-dlp · debian · 13

    • 2026.08.19-1~bpo13+1 · all · trixie-backports

      Fixed · Fixed: 2024.07.01-1

      dsa · yt-dlp · debian · 13

    • 2026.08.19-1~bpo13+1 · all · trixie-backports

      Fixed · Fixed: 2024.07.01-1

      dsa · yt-dlp · debian · 13

Observed:

References