# CVE-2026-66036: FFmpeg Heap Out-of-Bounds Write in vf_hqdn3d Filter

- Severity: High 7.7 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2026-07-24T19:34:16.223Z
- Modified: 2026-08-07T01:05:17.870Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- FFmpeg FFmpeg: up to 8.1.2 (not affected: 5d7112c60e6f0f0742ce47d448e6da0718a70f4c)

## Every score

- VulnCheck: CVSS:4.0 7.7 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23783> (issue-tracking, patch)
- <https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/5d7112c60e6f0f0742ce47d448e6da0718a70f4c> (patch)
- <https://www.vulncheck.com/advisories/ffmpeg-heap-out-of-bounds-write-in-vf-hqdn3d-filter> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-66036](https://www.cve.org/CVERecord?id=CVE-2026-66036), CVE Terms of Use, modified 2026-07-29
- NVD: [CVE-2026-66036](https://nvd.nist.gov/vuln/detail/CVE-2026-66036), Public domain, modified 2026-08-07

---

Page: https://cve.day/CVE-2026-66036 · Whole record: https://cve.day/CVE-2026-66036.json · Rebuilt by cve.day 2026-11-25T22:59:30.032Z
