# CVE-2026-66036: FFmpeg Heap Out-of-Bounds Write in vf\_hqdn3d Filter

- Priority: **Routine**
- Reason: Not severe (CVSS 7.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-24 · Modified: 2026-07-29
- Aliases: UBUNTU-CVE-2026-66036, DEBIAN-CVE-2026-66036, CGA-2vpc-jfcr-qj9x, CGA-5vvf-g9w3-wjmc, CGA-6cfc-p6j7-8v95, CGA-88p8-6h74-cqfw, CGA-m3c4-m948-pwqp, CGA-mv3v-9fgj-rvq4, CGA-pv72-5pf4-wg59, CGA-wwvx-xph3-rcg8, CGA-2r6p-7wqx-6r58, CGA-2vpx-fv97-r5vx, CGA-3ww4-fffx-jf2m, CGA-48hg-mggp-gwx7, CGA-4x57-8jjw-4q9c, CGA-7x7g-h766-7v22, CGA-8jrw-xw46-gmmf, CGA-8x79-rp9f-j25c, CGA-923h-x36f-3x9v, CGA-97qm-vh2q-q7w8, CGA-h2rp-2xf8-xh4j, CGA-j6jr-rg57-7jrx, CGA-jphh-jwwp-6f53, CGA-jx3m-wjg3-r4xv, CGA-p8r2-c95q-v6q9, CGA-px3r-6hmr-49q3, CGA-q7h3-4g5w-2899, CGA-qjfp-x4m7-chq7, CGA-qrpg-q6vr-9h79, CGA-qv96-cfp3-6f28, CGA-r48r-593c-2f8v, CGA-rpxv-p97m-98c2, CGA-rvg9-gw2f-fq4m, CGA-v58j-38g9-63h4, CGA-vjw3-whg7-pg3v, CGA-vwmh-5h39-6fc8, CGA-wg9m-wg9m-52f9, CGA-xjvm-wwwq-mwj4, CGA-22rp-qvxv-h2h2, CGA-2vh8-6jv6-wqg4, CGA-2w34-w38v-fw48, CGA-4g4w-4ch7-wwq6, CGA-8x85-vvxw-wh8c, CGA-cxjg-9qv7-3mpq, CGA-r3hf-r388-48h8, CGA-w76f-h9wg-95c4, CGA-5799-4hj8-7vh8, CGA-r9vj-jr3x-fh7c, CGA-cwhg-vj4c-wpmp, CGA-h769-6mm2-gfr4, CGA-rvpm-fxpv-hmrc, CGA-w9w7-xc69-88fp, CGA-xrwg-fm22-wq4j, CGA-3gf3-qqh9-v7w2, CGA-69q5-rcgm-4r69, CGA-75wp-9frj-8gfh, CGA-76gx-g85x-hw5q, CGA-8v69-r44h-984g, CGA-966x-fcr4-hg4f, CGA-9gwp-878c-8hp8, CGA-c5g6-qgx8-45c7, CGA-cmf4-p25r-6qhw, CGA-fg75-p6cw-79q6, CGA-g7g5-x7xj-cfq7, CGA-gpmf-x33r-pwpm, CGA-gqcj-7rvj-7w9v, CGA-h4xq-94fg-6phj, CGA-hrqx-2464-88m5, CGA-hwxv-9jhf-r3hv, CGA-jmr9-mxhg-476w, CGA-jvpx-p26q-j5xg, CGA-mff9-89wq-j596, CGA-mv9c-q4w2-4g4p, CGA-rg37-wh9h-vrfg, CGA-x739-245w-2m56, CGA-64hp-8c54-v63w, CGA-6p6q-3mm9-36g3, CGA-gjp4-rjv9-j4h3, CGA-phv5-h9hv-3cfw, CGA-wvh2-rpjv-wrgc
- Record: https://cvemate.com/vulnerability/CVE-2026-66036 · JSON: https://cvemate.com/vulnerability/CVE-2026-66036/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.401%, percentile 36.417%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 47)

- chainguard eco-python-ffmpeg-6-minimal (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-6-minimal-dev (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-6-minimal-static (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-7-minimal (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-7-minimal-dev (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-7-minimal-static (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-8-minimal (Chainguard): \< 8.1.3-r0
- chainguard eco-python-ffmpeg-8-minimal-dev (Chainguard): \< 8.1.3-r0
- chainguard eco-python-ffmpeg-8-minimal-static (Chainguard): \< 8.1.3-r0
- chainguard ffmpeg-6 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-7 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-7.1 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-8.0 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-8.1 (Chainguard): \< 8.1.3-r0
- chainguard ffmpeg-fips-7.1 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-dev (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libavcodec61 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libavdevice61 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libavfilter10 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libavformat61 (Chainguard): All versions (No fix recorded)

## References

- <https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23783>
- <https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/5d7112c60e6f0f0742ce47d448e6da0718a70f4c>
- <https://www.vulncheck.com/advisories/ffmpeg-heap-out-of-bounds-write-in-vf-hqdn3d-filter>
- <https://ubuntu.com/security/CVE-2026-66036>
- <https://www.cve.org/CVERecord?id=CVE-2026-66036>
- <https://ubuntu.com/security/notices/USN-8671-1>
- <https://ubuntu.com/security/notices/USN-8738-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-66036>
- <https://code.ffmpeg.org/FFmpeg/FFmpeg>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/66xxx/CVE-2026-66036.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-66036>

---

Data as of 2026-12-05T04:58:37.749Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
