<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Yt-Dlp (&lt; 2026.7.4) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/yt-dlp--2026.7.4/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Fri, 24 Jul 2026 20:36:37 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/yt-dlp--2026.7.4/feed.xml" rel="self" type="application/rss+xml"/><item><title>yt-dlp Shortcut Command Injection Vulnerability</title><link>https://feed.craftedsignal.io/briefs/2026-07-yt-dlp-injection/</link><pubDate>Fri, 24 Jul 2026 20:36:37 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-yt-dlp-injection/</guid><description>A high-severity command injection vulnerability, CVE-2026-55404, in yt-dlp versions prior to 2026.7.4 allows remote attackers to achieve arbitrary code execution by crafting malicious metadata that is improperly sanitized when generating Windows `.url` or Linux `.desktop` shortcut files, leading to remote executable execution or shell command injection upon user interaction.</description><content:encoded><![CDATA[<p>A significant vulnerability, CVE-2026-55404, has been identified in yt-dlp versions preceding 2026.7.4, enabling remote code execution through improper sanitization of metadata when generating shortcut files. Attackers can craft malicious <code>webpage_url</code> or <code>filename</code> values in the metadata of content downloaded via yt-dlp. If a user downloads this content using the <code>--write-link</code>, <code>--write-url-link</code>, or <code>--write-desktop-link</code> options, yt-dlp creates a malicious shortcut file. On Windows, this can be a <code>.url</code> file containing a <code>file://</code> URI pointing to a remote executable. On Linux, particularly when <code>--no-windows-filenames</code> is also used, a <code>.desktop</code> file can be crafted with injected shell commands. If a user subsequently clicks these malicious shortcut files, the remote executable or shell command will be executed on their system, leading to arbitrary code execution. This vulnerability poses a direct threat to user systems by turning seemingly harmless shortcut files into vectors for payload delivery and execution.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>A remote attacker crafts a malicious metadata payload (e.g., <code>webpage_url</code> or <code>filename</code>) for content hosted on a website they control.</li>
<li>A user attempts to download this content using <code>yt-dlp</code> with the <code>--write-link</code>, <code>--write-url-link</code>, or <code>--write-desktop-link</code> options. For Linux <code>.desktop</code> exploitation, the user must also use the <code>--no-windows-filenames</code> option.</li>
<li><code>yt-dlp</code> processes the malicious metadata and, due to improper sanitization, generates a malicious shortcut file (either a Windows <code>.url</code> or a Linux <code>.desktop</code> file) on the user's system.</li>
<li>In the Windows scenario, the generated <code>.url</code> file's content is manipulated to include a <code>file://</code> URI pointing to a remote malicious executable (e.g., <code>file://example.org/pwned.exe</code>).</li>
<li>In the Linux scenario, the generated <code>.desktop</code> file's content is manipulated to set <code>Type=Application</code> and include an <code>Exec</code> line containing an arbitrary shell command (e.g., <code>sh -c &quot;touch /tmp/pwned&quot;</code>).</li>
<li>The unsuspecting user subsequently double-clicks the malicious shortcut file.</li>
<li>If on Windows, the operating system's shell processes the <code>.url</code> file and executes the remote executable referenced by the <code>file://</code> URI.</li>
<li>If on Linux, the desktop environment processes the <code>.desktop</code> file and executes the embedded shell command, resulting in arbitrary code execution on the user's system.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-55404 leads to arbitrary code execution on the affected user's system. This allows attackers to run any command, install malware, steal data, or further compromise the system with the privileges of the logged-in user. The impact is significant as it can lead to full system compromise without any overt signs of malicious activity beyond the user clicking a shortcut. All users of vulnerable yt-dlp versions who download content from untrusted sources with the specified options are at risk.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade <code>yt-dlp</code> to version 2026.07.04 or newer immediately to mitigate CVE-2026-55404.</li>
<li>If immediate upgrade is not possible, advise users to avoid using the <code>--write-link</code>, <code>--write-url-link</code>, or <code>--write-desktop-link</code> options with <code>yt-dlp</code>, especially when downloading from untrusted sources.</li>
<li>Deploy the Sigma rule &quot;Detects CVE-2026-55404 Exploitation - Linux Desktop Shortcut Command Execution&quot; to your SIEM and tune for your environment to identify suspicious shell command execution.</li>
<li>Enable <code>process_creation</code> logging for Linux endpoints to capture command-line arguments and parent process information necessary for the rule.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>command-injection</category><category>rce</category><category>client-side</category><category>vulnerability</category><category>code-execution</category></item></channel></rss>