Cloudanix VulnDB

CVE-2026-66036

High · 8.8

CVSS

8.8

EPSS

0.4%

Published

Jul 24, 2026

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A video processing tool can be tricked into overwriting its own memory when handling certain changing video files, which may let an attacker take control of the system or cause it to crash.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Moderate
Impact
Full Compromise
Component
Library
Class
Buffer Overflow
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Heap out-of-bounds write in vf_hqdn3d.config_input() and denoise_spatial() caused by undersized per-plane line-history buffers allocated on the initial frame size; subsequent larger frames write past the allocation when -reinit_filter 0 prevents filtergraph reinitialization.

Why it matters to the business

Processing untrusted video files can corrupt process memory, enabling remote code execution or crashes on systems that invoke FFmpeg with the affected filter and option, potentially leading to compromise of media-processing pipelines or servers.

How an attack unfolds

An attacker supplies a specially crafted video whose frame resolution increases across frames, invokes FFmpeg with vf_hqdn3d and -reinit_filter 0, and triggers repeated calls to denoise_spatial() that write beyond the undersized heap buffers allocated from the first frame.

How to fix it

Upgrade FFmpeg to a build containing commit 5d7112c or a later release; avoid use of -reinit_filter 0 with vf_hqdn3d on untrusted inputs until patched; rebuild any downstream applications or containers that statically link the vulnerable library.

How to confirm the fix worked

Confirm the installed FFmpeg binary reports a version after commit 5d7112c; run regression tests that feed multi-resolution video sequences with -reinit_filter 0 and verify absence of heap corruption via ASAN or similar instrumentation.

Typical attack path

  1. Craft video file with increasing frame dimensions across frames
  2. Invoke FFmpeg using vf_hqdn3d filter together with -reinit_filter 0
  3. Trigger filtergraph processing that reuses undersized line-history buffers
  4. Cause denoise_spatial() to perform out-of-bounds writes resulting in heap corruption
  5. Leverage corruption for code execution or denial of service

How to detect it

Search application and FFmpeg logs for invocations containing both vf_hqdn3d and reinit_filter=0; monitor for crashes or abnormal memory usage during video transcoding jobs; inspect process core dumps for heap corruption patterns near denoise_spatial.

What your security team should do

  • Immediately inventory all FFmpeg deployments and media-processing workflows that use vf_hqdn3d
  • Prioritize patching of internet-facing or high-value media servers within the next 30 days
  • Add build-time or runtime checks that disable or warn on -reinit_filter 0 combined with vf_hqdn3d
  • Update container base images and CI pipelines to pull patched FFmpeg versions

The record

FFmpeg through 8.1.2, fixed in commit 5d7112c, contains a heap out-of-bounds write vulnerability in the vf_hqdn3d filter that allows attackers to corrupt heap memory by supplying a crafted video whose frame resolution increases between frames when filtergraph reinitialization is disabled via the -reinit_filter 0 option. Attackers can provide a malicious video input where vf_hqdn3d.config_input() allocates undersized per-plane line-history buffers based on the initial frame width, and subsequent larger frames cause denoise_spatial() to write beyond the allocation boundary, resulting in heap memory corruption.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities