Skip to main content

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

0
High
Published: 08/13/2026 (08/13/2026, 17:55:05 UTC)
Source: GCVE Database
Product: yewtube

Description

yt-dlp versions from 2.10.5 up to but not including 2.10.5_5 do not restrict file extensions for downloaded files, allowing creation of arbitrary filenames including executables. Because yt-dlp reads configuration files from the working directory and executes Windows executables found there, this can lead to arbitrary code execution. The issue is fixed in yt-dlp version 2024.07.01 by whitelisting allowed extensions. Users are advised to upgrade and follow recommended safe usage practices to mitigate risk.

CVSS v3.1

Score 7.8high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

Homebrewmore threats →ghsa
yewtube
pkg:brew/yewtube
Affected versions
>=2.10.5 <2.10.5_5

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/18/2026, 01:57:20 UTC

Technical Analysis

yt-dlp improperly sanitizes file extensions of downloaded files, allowing arbitrary filenames including executables to be created in the download folder. On Windows, this can lead to path traversal and execution of malicious executables or configuration files (e.g., yt-dlp.conf) containing commands. The vulnerability is addressed in yt-dlp version 2024.07.01 by implementing a whitelist of allowed file extensions, reducing the attack surface. Exploitation involves tricking yt-dlp into downloading files with dangerous extensions such as .exe or .conf, which can then be executed on subsequent runs.

Potential Impact

An attacker can cause yt-dlp to create files with arbitrary names and extensions in the download directory, including executables or configuration files. This can lead to arbitrary code execution when yt-dlp is run again, especially on Windows systems where executables in the working directory are executed. The impact includes full compromise of the user environment running yt-dlp.

Mitigation Recommendations

A fix is available in yt-dlp version 2024.07.01, which should be applied promptly. Users should always include '.%(ext)s' at the end of output templates and avoid downloading to directories in the system PATH or other sensitive locations. For those unable to upgrade immediately, restrict downloads to common media extensions, avoid generic extractors, use default output templates, omit subtitle options, and avoid loading configuration files from common locations using '--ignore-config --config-location ...'.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
BREW-yewtube-CVE-2024-38519
Osv Schema Version
1.7.3
Ecosystems
["Homebrew"]
Cvss Version
3.1

Threat ID: 6aac8e7055bf5e2cf5491ee5

Added to database: 09/18/2026, 01:05:52 UTC

Last enriched: 09/18/2026, 01:57:20 UTC

Last updated: 09/18/2026, 02:06:23 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses