{"schemaVersion":3,"id":"CVE-2024-38519","aliases":["GHSA-79w7-vh3h-8g4j","PYSEC-2026-2065","UBUNTU-CVE-2024-38519","DEBIAN-CVE-2024-38519","openSUSE-SU-2024:14094-1"],"status":"published","duplicateOf":null,"title":null,"description":"`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.\n\n\n\n\n`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.","dates":{"published":"2024-07-02T13:47:36.399Z","modified":"2024-08-02T04:12:25.618Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00325,"percentile":0.24211,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00325},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00325,"percentile":0.24211}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00325,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00325,"percentile":0.24211}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-669","name":"Incorrect Resource Transfer Between Spheres","description":"The product does not properly transfer a resource/behavior to another sphere, or improperly imports a resource/behavior from another sphere, in a manner that provides unintended control over that resource.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/669.html"}],"affected":[{"vendor":"debian","product":"youtube-dl","name":"youtube-dl","label":"youtube-dl","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/youtube-dl","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"yt-dlp","name":"yt-dlp","label":"yt-dlp","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/yt-dlp","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 2024.07.01-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 2024.07.01-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"yt-dlp","name":"yt-dlp","label":"yt-dlp","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/yt-dlp","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"PyPI","product":"yt-dlp","name":"yt-dlp","label":"yt-dlp","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/yt-dlp","purlType":"pypi","versions":[{"text":"< 2024.07.01","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2024.07.01","eol":null,"hubHref":null},{"vendor":"opensuse","product":"yt-dlp&distro=openSUSE Tumbleweed","name":"yt-dlp","label":"yt-dlp&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/yt-dlp&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 2024.07.01-1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2024.07.01-1.1","eol":null,"hubHref":null},{"vendor":"yt-dlp","product":"yt-dlp","name":"yt-dlp","label":"yt-dlp","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ < 2024.07.01, < 2024.07.01","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ < 2024.07.01, < 2024.07.01","eol":null,"hubHref":"/vendor/yt-dlp/yt-dlp"},{"vendor":"ytdl-org","product":"youtube-dl","name":"youtube-dl","label":"youtube-dl","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ >= 2015.01.25, ≤ 2021.12.17","noFixRecorded":false,"fixedIn":null},{"text":"≥ nightly, < 2024-07-03","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ >= 2015.01.25, ≤ 2021.12.17 | ≥ nightly, < 2024-07-03","eol":null,"hubHref":"/vendor/ytdl-org/youtube-dl"}],"affectedCount":7,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-79w7-vh3h-8g4j","label":"github.com/yt-dlp/yt-dlp/security/advisories/GHSA-79w7-vh3h-8g4j","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","REPORT"]},{"url":"https://github.com/yt-dlp/yt-dlp/commit/5ce582448ececb8d9c30c8c31f58330090ced03a","label":"github.com/yt-dlp/yt-dlp/commit/5ce582448ececb8d9c30c8c31f58330090ced03a","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","REPORT"]},{"url":"https://github.com/yt-dlp/yt-dlp/releases/tag/2024.07.01","label":"github.com/yt-dlp/yt-dlp/releases/tag/2024.07.01","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT"]},{"url":"https://securitylab.github.com/advisories/GHSL-2024-090_yt-dlp","label":"securitylab.github.com/advisories/GHSL-2024-090_yt-dlp","hostname":"securitylab.github.com","tags":["X Refsource MISC","Advisory","REPORT"]},{"url":"https://github.com/dirkf/youtube-dl/security/advisories/GHSA-22fp-mf44-f2mq","label":"github.com/dirkf/youtube-dl/security/advisories/GHSA-22fp-mf44-f2mq","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://securitylab.github.com/advisories/GHSL-2024-089_youtube-dl/","label":"securitylab.github.com/advisories/GHSL-2024-089_youtube-dl/","hostname":"securitylab.github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/ytdl-org/youtube-dl/pull/32830","label":"github.com/ytdl-org/youtube-dl/pull/32830","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/ytdl-org/youtube-dl/commit/d42a222ed541b96649396ef00e19552aef0f09ec","label":"github.com/ytdl-org/youtube-dl/commit/d42a222ed541b96649396ef00e19552aef0f09ec","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38519","label":"nvd.nist.gov/vuln/detail/CVE-2024-38519","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/yt-dlp/yt-dlp","label":"github.com/yt-dlp/yt-dlp","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://securitylab.github.com/advisories/GHSL-2024-089_youtube-dl","label":"securitylab.github.com/advisories/GHSL-2024-089_youtube-dl","hostname":"securitylab.github.com","tags":["Advisory"]},{"url":"https://pypi.org/project/yt-dlp","label":"pypi.org/project/yt-dlp","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-79w7-vh3h-8g4j","label":"github.com/advisories/GHSA-79w7-vh3h-8g4j","hostname":"github.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-38519","label":"ubuntu.com/security/CVE-2024-38519","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-38519","label":"www.cve.org/CVERecord?id=CVE-2024-38519","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-38519","label":"security-tracker.debian.org/tracker/CVE-2024-38519","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2024-38519","label":"www.suse.com/security/cve/CVE-2024-38519","hostname":"www.suse.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["GHSA-22FP-MF44-F2MQ"]},"timeline":[{"kind":"published","date":"2024-07-02T13:47:36.399Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-02T04:12:25.618Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T07:12:55.587Z","stale":false,"partial":false}}