<?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>FFmpeg (Through 8.1.2) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/ffmpeg-through-8.1.2/</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:19:22 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/ffmpeg-through-8.1.2/feed.xml" rel="self" type="application/rss+xml"/><item><title>FFmpeg Heap Out-of-Bounds Write Vulnerability (CVE-2026-66036)</title><link>https://feed.craftedsignal.io/briefs/2026-07-ffmpeg-heap-oob-write/</link><pubDate>Fri, 24 Jul 2026 20:19:22 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-ffmpeg-heap-oob-write/</guid><description>A heap out-of-bounds write vulnerability exists in FFmpeg through version 8.1.2, specifically within the vf_hqdn3d filter, allowing attackers to corrupt heap memory by providing a crafted video input where frame resolution increases between frames while filtergraph reinitialization is disabled, leading to undersized buffers and a write beyond allocation boundaries.</description><content:encoded><![CDATA[<p>FFmpeg, a widely used multimedia framework, is affected by a critical heap out-of-bounds write vulnerability, identified as CVE-2026-66036, impacting versions up to and including 8.1.2. The flaw resides within the <code>vf_hqdn3d</code> filter. An attacker can exploit this by crafting a malicious video file where the frame resolution progressively increases. When this video is processed by a vulnerable FFmpeg instance with the <code>-reinit_filter 0</code> option enabled (which disables filtergraph reinitialization), the <code>vf_hqdn3d.config_input()</code> function allocates undersized buffers based on the initial, smaller frame. Subsequent processing of larger frames by the <code>denoise_spatial()</code> function then attempts to write data beyond these allocated boundaries, resulting in heap memory corruption. This vulnerability can lead to denial of service through application crashes or, potentially, arbitrary code execution, posing a significant risk to systems processing untrusted video content.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker crafts a malicious video file specifically designed for the <code>vf_hqdn3d</code> filter, where the resolution of video frames increases after the initial frame.</li>
<li>The malicious video file is delivered to a victim's system, potentially via email attachments, malicious downloads, or by embedding it on a compromised website.</li>
<li>A victim's application or service uses a vulnerable version of FFmpeg (through 8.1.2) to process the malicious video.</li>
<li>The FFmpeg process executes with the <code>-reinit_filter 0</code> option for the <code>vf_hqdn3d</code> filter, which prevents dynamic reallocation of buffers for changing frame sizes.</li>
<li>During the processing of the initial, smaller frame, the <code>vf_hqdn3d.config_input()</code> function allocates memory buffers for line-history based on this initial frame's width.</li>
<li>As FFmpeg proceeds to process subsequent frames with higher resolutions, the <code>denoise_spatial()</code> function attempts to write data for these larger frames.</li>
<li>Due to the undersized, pre-allocated buffers, <code>denoise_spatial()</code> writes past the allocated memory boundary, causing a heap out-of-bounds write.</li>
<li>This memory corruption leads to an application crash (denial of service) or, with precise exploitation, could allow an attacker to achieve arbitrary code execution on the compromised system.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-66036 can lead to severe consequences, primarily encompassing denial of service (DoS) due to application crashes. In more advanced scenarios, it could enable arbitrary code execution, allowing an attacker to gain control over the affected system. While specific victim counts or targeted sectors are not detailed in the source, any organization or individual processing untrusted video files with vulnerable FFmpeg versions is at risk. This includes media processing platforms, video hosting services, content delivery networks, and desktop users utilizing FFmpeg-dependent applications. The CVSS v3.1 base score of 8.8 reflects the high severity and potential for critical impact.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Patch CVE-2026-66036 by updating FFmpeg to a version beyond 8.1.2 or applying commit <code>5d7112c</code> immediately.</li>
<li>Implement strict input validation and sanitization for all video files processed by FFmpeg, especially from untrusted sources, to mitigate crafted input.</li>
<li>Monitor FFmpeg process logs for crashes, segmentation faults, or other abnormal termination events, which could indicate attempted exploitation or system compromise.</li>
<li>Review configurations to minimize usage of the <code>-reinit_filter 0</code> option with the <code>vf_hqdn3d</code> filter when processing untrusted content.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>ffmpeg</category><category>vulnerability</category><category>heap-corruption</category><category>code-execution</category><category>dos</category></item></channel></rss>