# CVE-2026-66041: FFmpeg 7.0 - 8.1.2 Heap Out-of-Bounds Write via vf\_quirc Filter

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-07-24 · Modified: 2026-07-29
- Aliases: UBUNTU-CVE-2026-66041, DEBIAN-CVE-2026-66041, CGA-h49p-wqqr-fjc5, CGA-h6xr-jf76-fmcp, CGA-hgg4-xw87-27xg, CGA-hjp8-fp8h-v4x2, CGA-rjqq-m7xh-c2h3, CGA-v3x7-7gv3-3m47, CGA-vpcj-3hq5-5xp9, CGA-x67g-66qh-h6hv, CGA-2435-m4pj-7v5p, CGA-2fmv-x645-8w29, CGA-2q93-pr45-xxr6, CGA-3f78-x6r5-j884, CGA-3mfq-chq9-jp48, CGA-5gcv-9gj8-w94j, CGA-6c5m-r7w5-5vh4, CGA-6rfp-6vp5-x6vv, CGA-83fv-rjgc-vxv7, CGA-8v3m-45rh-m2gq, CGA-h6v7-8mmc-4mw8, CGA-vr3v-x8q7-xpw9, CGA-26cw-xvq9-jf3x, CGA-3w8r-p7h8-gqh3, CGA-6m2j-wx26-jchg, CGA-fxhw-89qj-59q2, CGA-r3pr-mxcj-vgh7, CGA-4jp7-fqpf-9gfr, CGA-55c2-9395-5v24, CGA-768p-p6w4-xcx9, CGA-h3rq-xm96-jg94, CGA-m9rr-vjhq-5hj3, CGA-vhmc-xr33-gmxr, CGA-wcx4-x477-949m, CGA-whvq-8gvj-8926, CGA-xh8p-m7hc-h42h, CGA-3396-82fv-fp9w, CGA-vjjr-xx8p-p632, CGA-vm2g-xmmc-2mw9, CGA-w223-q754-xjpf, CGA-45cm-2f3v-x5pq, CGA-628j-hx25-7fpj, CGA-6rhc-5chh-gxqj, CGA-8hj4-8429-mr4h, CGA-8q32-jf39-3xrh, CGA-97v3-2vpj-x9g8, CGA-9mww-798x-c56q, CGA-9r98-2jw2-p3rq, CGA-c5wg-3j86-g2xm, CGA-c7cc-2rhj-2q3g, CGA-c7cw-cm7p-jh5p, CGA-c7hq-jp4q-hcjm, CGA-cvj8-263q-p9p4, CGA-f5c9-wpcx-9p8v, CGA-fc7h-p7w9-c45q, CGA-gg4r-4935-f6vh, CGA-ghww-wf5v-v3vx, CGA-hw85-8fpf-fvch, CGA-hwv4-cpcx-pmh4, CGA-jv4c-9hg4-38v9, CGA-mr2x-5x7f-873m, CGA-pjrq-w764-985x, CGA-q89c-xfw4-8hrf, CGA-r26q-wrp8-hh83
- Record: https://cvemate.com/vulnerability/CVE-2026-66041 · JSON: https://cvemate.com/vulnerability/CVE-2026-66041/json

## Description

```text
FFmpeg 7.0 through 8.1.2, fixed in commit 4da9812, contains a heap out-of-bounds write vulnerability in the vf_quirc filter that allows an attacker to corrupt heap memory by supplying a crafted PGS/SUP subtitle file with mismatched frame dimensions. Attackers can provide a subtitle file whose second presentation has larger dimensions than its first, causing av_image_copy_plane() to copy data exceeding the initial allocation size into the undersized libquirc grayscale image buffer, resulting in heap corruption and process crash with potential for code execution.
```

## 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.539%, percentile 46.872%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected (first 20 of 38)

- 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-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): All versions (No fix recorded)
- 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)
- chainguard ffmpeg-fips-7.1-libavutil59 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libpostproc58 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libswresample5 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libswscale8 (Chainguard): All versions (No fix recorded)

## References

- <https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23625>
- <https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/4da9812e25894fb51d62a8875cfa8eb39b5e20f5>
- <https://www.vulncheck.com/advisories/ffmpeg-heap-out-of-bounds-write-via-vf-quirc-filter>
- <https://ubuntu.com/security/CVE-2026-66041>
- <https://www.cve.org/CVERecord?id=CVE-2026-66041>
- <https://security-tracker.debian.org/tracker/CVE-2026-66041>
- <https://code.ffmpeg.org/FFmpeg/FFmpeg>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/66xxx/CVE-2026-66041.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-66041>

---

Data as of 2026-12-05T08:43:57.105Z. 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
