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… (CVE-2026-66036)
FFmpeg versions through 8.1.2 contain a heap out-of-bounds write vulnerability in the vf_hqdn3d filter. This occurs when a crafted video input with increasing frame resolution is processed with filtergraph reinitialization disabled (-reinit_filter 0). The vulnerability allows heap memory corruption due to undersized buffer allocation for line-history, leading to out-of-bounds writes during denoising. This issue is fixed in commit 5d7112c.
AI Analysis
Technical Summary
The vulnerability in FFmpeg (up to version 8.1.2) involves a heap out-of-bounds write in the vf_hqdn3d filter. When the filtergraph reinitialization is disabled, the function vf_hqdn3d.config_input() allocates line-history buffers based on the initial frame width. If subsequent frames have a larger resolution, the denoise_spatial() function writes beyond the allocated buffer boundary, causing heap memory corruption. This can be triggered by supplying a crafted video with increasing frame resolution between frames. The issue is tracked as CVE-2026-66036 and fixed in commit 5d7112c.
Potential Impact
Heap memory corruption can lead to application crashes or potentially arbitrary code execution if exploited. The vulnerability requires an attacker to supply a malicious video input with increasing frame resolution and the filtergraph reinitialization disabled. There are no known exploits in the wild as of the published date.
Mitigation Recommendations
A fix is available in FFmpeg as of commit 5d7112c. Users should update to a version including this commit or later to remediate the vulnerability. No other mitigation or workaround is documented.
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… (CVE-2026-66036)
Description
FFmpeg versions through 8.1.2 contain a heap out-of-bounds write vulnerability in the vf_hqdn3d filter. This occurs when a crafted video input with increasing frame resolution is processed with filtergraph reinitialization disabled (-reinit_filter 0). The vulnerability allows heap memory corruption due to undersized buffer allocation for line-history, leading to out-of-bounds writes during denoising. This issue is fixed in commit 5d7112c.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in FFmpeg (up to version 8.1.2) involves a heap out-of-bounds write in the vf_hqdn3d filter. When the filtergraph reinitialization is disabled, the function vf_hqdn3d.config_input() allocates line-history buffers based on the initial frame width. If subsequent frames have a larger resolution, the denoise_spatial() function writes beyond the allocated buffer boundary, causing heap memory corruption. This can be triggered by supplying a crafted video with increasing frame resolution between frames. The issue is tracked as CVE-2026-66036 and fixed in commit 5d7112c.
Potential Impact
Heap memory corruption can lead to application crashes or potentially arbitrary code execution if exploited. The vulnerability requires an attacker to supply a malicious video input with increasing frame resolution and the filtergraph reinitialization disabled. There are no known exploits in the wild as of the published date.
Mitigation Recommendations
A fix is available in FFmpeg as of commit 5d7112c. Users should update to a version including this commit or later to remediate the vulnerability. No other mitigation or workaround is documented.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-575m-jfmw-q76c
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-66036"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a65422a9c2644c7f808a1a7
Added to database: 07/25/2026, 23:09:30 UTC
Last enriched: 07/25/2026, 23:54:59 UTC
Last updated: 07/26/2026, 03:44:30 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.