CVE-2026-66036
Received Received - Intake

Heap Out-of-Bounds Write in FFmpeg vf_hqdn3d Filter

Vulnerability report for CVE-2026-66036, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-24

Last updated on: 2026-07-24

Assigner: VulnCheck

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-24
Last Modified
2026-07-24
Generated
2026-07-25
AI Q&A
2026-07-24
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
ffmpeg ffmpeg to 8.1.2 (inc)
ffmpeg ffmpeg to 8.1.2 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-122 A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-66036 is a heap out-of-bounds write vulnerability in FFmpeg versions 8.1.2 and earlier. It affects the vf_hqdn3d filter, allowing attackers to corrupt heap memory by providing a crafted video where frame resolution increases between frames. When filtergraph reinitialization is disabled using the -reinit_filter 0 option, the filter allocates undersized buffers based on initial frame width. Larger subsequent frames cause the denoise_spatial function to write beyond allocated memory, leading to heap corruption.

Detection Guidance

To detect this vulnerability, check if FFmpeg 8.1.2 or earlier is installed and if the vf_hqdn3d filter is used with the -reinit_filter 0 option. Monitor for crashes or memory corruption when processing videos with increasing frame resolutions.

Impact Analysis

This vulnerability could allow attackers to execute arbitrary code or cause denial-of-service conditions on systems processing malicious video files. Users processing videos with FFmpeg, especially those using the vf_hqdn3d filter with -reinit_filter 0, are at risk if they handle untrusted video inputs.

Compliance Impact

This vulnerability could potentially impact compliance with GDPR and HIPAA by enabling heap memory corruption through crafted video inputs. Such corruption may lead to unauthorized data access, modification, or denial of service, which are critical risks under these regulations. However, the provided context does not explicitly detail compliance impacts.

Mitigation Strategies

Update FFmpeg to a version that includes commit 5d7112c or later. Avoid using the -reinit_filter 0 option with the vf_hqdn3d filter. If updating is not possible, restrict video processing to trusted sources.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-66036. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart