CVE-2026-66041

Name
CVE-2026-66041
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.
NVD Severity
unknown
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
disclosure@vulncheck.com https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/4da9812e25894fb51d62a8875cfa8eb39b5e20f5
disclosure@vulncheck.com https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23625
disclosure@vulncheck.com https://www.vulncheck.com/advisories/ffmpeg-heap-out-of-bounds-write-via-vf-quirc-filter

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:* ffmpeg >= 7.0 <= 8.1.2

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
ffmpeg edge-community 8.1.2-r1 Achill Gilgenast <achill@achill.org> possibly vulnerable
ffmpeg edge-community 8.1.2-r0 Achill Gilgenast <achill@achill.org> possibly vulnerable
ffmpeg edge-community 8.1.1-r1 Achill Gilgenast <achill@achill.org> possibly vulnerable
ffmpeg edge-community 8.1.1-r0 Achill Gilgenast <achill@achill.org> possibly vulnerable
ffmpeg edge-community 8.1-r1 Achill Gilgenast <achill@achill.org> possibly vulnerable
ffmpeg edge-community 8.1-r0 Achill Gilgenast <achill@achill.org> possibly vulnerable
ffmpeg edge-community 8.0.1-r3 Achill Gilgenast <achill@achill.org> possibly vulnerable
ffmpeg edge-community 8.0.1-r2 Achill Gilgenast <achill@achill.org> possibly vulnerable
ffmpeg edge-community 8.0.1-r1 Achill Gilgenast <achill@achill.org> possibly vulnerable
ffmpeg edge-community 8.0.1-r0 Achill Gilgenast <achill@achill.org> possibly vulnerable
ffmpeg edge-community 8.0-r4 Achill Gilgenast <achill@achill.org> possibly vulnerable
ffmpeg edge-community 8.0-r3 Achill Gilgenast <achill@achill.org> possibly vulnerable
ffmpeg edge-community 8.0-r2 Achill Gilgenast <achill@achill.org> possibly vulnerable
ffmpeg edge-community 8.0-r1 Achill Gilgenast <achill@achill.org> possibly vulnerable
ffmpeg edge-community 8.0-r0 Achill Gilgenast <achill@achill.org> possibly vulnerable
ffmpeg edge-community 7.1.2-r0 Achill Gilgenast <achill@achill.org> possibly vulnerable
ffmpeg edge-community 7.1.1-r1 Achill Gilgenast <achill@achill.org> possibly vulnerable
ffmpeg edge-community 7.1.1-r0 Achill Gilgenast <achill@achill.org> possibly vulnerable
ffmpeg 3.24-community 8.1.2-r0 Achill Gilgenast <achill@achill.org> possibly vulnerable
ffmpeg 3.24-community 8.1.1-r0 Achill Gilgenast <achill@achill.org> possibly vulnerable