CVE-2026-66041: FFmpeg 7.0 - 8.1.2 Heap Out-of-Bounds Write via vf_quirc Filter
FFmpeg 7.0 through 8.1.2, fixed in commit 4da9812, contains a heap out-of-bounds write vulnerability in the vfquirc 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 avimagecopyplane() 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
FFmpeg vf_quirc filterto a version that resolves this vulnerability.Patch 4da9812
Event History
Frequently Asked Questions
What is the severity of CVE-2026-66041?
CVE-2026-66041 has a high severity rating of 8.8.
How do I fix CVE-2026-66041?
To fix CVE-2026-66041, upgrade FFmpeg to version 8.1.3 or later, which contains the necessary patches.
What is the nature of the vulnerability in CVE-2026-66041?
CVE-2026-66041 is a heap out-of-bounds write vulnerability in the vf_quirc filter of FFmpeg.
What types of attacks can exploit CVE-2026-66041?
Attackers can exploit CVE-2026-66041 by supplying a specially crafted PGS/SUP subtitle file with incorrect frame dimensions.
Which versions of FFmpeg are affected by CVE-2026-66041?
CVE-2026-66041 affects FFmpeg versions from 7.0 to 8.1.2.