
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-66041 is a heap out-of-bounds write vulnerability in FFmpeg's vf_quirc filter, affecting versions 7.0 through 8.1.2. An attacker can exploit this by supplying a crafted PGS/SUP subtitle file with mismatched frame dimensions, causing heap memory corruption and potentially enabling arbitrary code execution. The vulnerability was disclosed on July 24, 2026, and is fixed in commit 4da9812. It carries a CVSS v3.1 base score of 8.8 (High) and a CVSS v4.0 base score of 7.7 (High) (GitHub Advisory, VulnCheck).
The root cause is an out-of-bounds write (CWE-787) in FFmpeg's vf_quirc video filter, which integrates the libquirc QR code detection library. When processing a PGS/SUP subtitle file, the filter allocates a grayscale image buffer based on the dimensions of the first subtitle presentation. If a subsequent presentation has larger dimensions, av_image_copy_plane() copies data exceeding the initial allocation size into the undersized buffer, resulting in a heap overflow. Exploitation requires user interaction — specifically, a victim must process a crafted subtitle file with FFmpeg — but no authentication or special privileges are required from the attacker (GitHub Advisory, VulnCheck).
Successful exploitation can result in heap memory corruption, leading to a process crash (denial of service) or, in more severe scenarios, arbitrary code execution in the context of the FFmpeg process. All three security pillars are affected: confidentiality, integrity, and availability are rated High. Systems that automatically process user-supplied or remotely fetched media files (e.g., media servers, transcoding pipelines, video platforms) are at elevated risk, as a single malicious subtitle file could compromise the processing host (GitHub Advisory, VulnCheck).
vf_quirc filter active (e.g., ffmpeg -i input.mkv -vf quirc output.mp4), or rely on a media application that internally invokes FFmpeg for subtitle rendering.av_image_copy_plane() copies image data based on the larger dimensions into the undersized libquirc grayscale buffer allocated for the first (smaller) dimensions, writing beyond the buffer boundary..sup or .pgs subtitle files in media processing directories; core dump files generated by FFmpeg crashes.malloc: corrupted top size).Update FFmpeg to a version beyond 8.1.2 that includes commit 4da9812e25894fb51d62a8875cfa8eb39b5e20f5, which resolves the dimension mismatch handling in the vf_quirc filter. As an interim workaround, avoid using the vf_quirc filter when processing subtitle files from untrusted sources, or disable subtitle processing entirely in automated pipelines until the patch is applied. Additionally, implementing input validation to enforce consistent frame dimensions across subtitle presentations can reduce exposure (GitHub Advisory, VulnCheck).
The vulnerability received brief coverage from The Hacker Wire, which published a dedicated article on the FFmpeg heap out-of-bounds write in the vf_quirc filter shortly after disclosure (The Hacker Wire). A Mastodon post from The Hacker Wire account also noted the vulnerability. No significant vendor statements, major researcher commentary, or widespread community discussion have been observed beyond standard CVE aggregator coverage.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."