# CVE-2026-66041: FFmpeg 7.0 - 8.1.2 Heap Out-of-Bounds Write via vf_quirc 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.54%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-24T19:54:11.426Z
- Modified: 2026-10-24T13:10:00.147Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- FFmpeg FFmpeg: from 7.0 up to 8.1.2 (not affected: 4da9812e25894fb51d62a8875cfa8eb39b5e20f5)

## 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 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23625> (exploit, issue-tracking, patch)
- <https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/4da9812e25894fb51d62a8875cfa8eb39b5e20f5> (patch)
- <https://www.vulncheck.com/advisories/ffmpeg-heap-out-of-bounds-write-via-vf-quirc-filter> (third-party-advisory)

## Sources

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

---

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