CVE-2026-66041
High · 8.8CVSS
8.8
EPSS
0.5%
Published
Jul 24, 2026
CISA due date
—
Cloudanix analysis
A video tool can be tricked by a specially made subtitle file into crashing or letting attackers run their own code on the system.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Remote Code Execution
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap out-of-bounds write in the vf_quirc filter when processing a crafted PGS/SUP subtitle file whose second presentation has larger dimensions than the first, causing av_image_copy_plane to overflow the undersized libquirc grayscale buffer and corrupt adjacent heap memory.
Why it matters to the business
Media processing pipelines that ingest untrusted subtitles can experience crashes or remote code execution, leading to service disruption, data loss, or compromise of systems handling video content.
How an attack unfolds
An attacker crafts a PGS/SUP subtitle file with mismatched frame dimensions between presentations, supplies it to an application using the vulnerable FFmpeg vf_quirc filter, triggers av_image_copy_plane to write beyond the allocated buffer, and achieves heap corruption that can be leveraged for code execution.
How to fix it
Update FFmpeg to a build containing commit 4da9812 or later; rebuild applications linking against the patched library; disable the vf_quirc filter where subtitle processing of untrusted PGS/SUP files is not required.
How to confirm the fix worked
Confirm the installed FFmpeg binary or library reports a version after 8.1.2 or contains commit 4da9812; test processing of the original proof-of-concept subtitle file and verify absence of heap corruption or crash.
Typical attack path
- Identify a target application or service that uses FFmpeg 7.0-8.1.2 with the vf_quirc filter enabled
- Generate or obtain a PGS/SUP subtitle file with a second presentation larger than the first
- Deliver the crafted subtitle file to the target via upload, stream, or file processing workflow
- Trigger subtitle decoding and filter execution to induce the out-of-bounds write
- Exploit resulting heap corruption to execute arbitrary code or cause denial of service
How to detect it
Monitor FFmpeg process logs and crash reports for heap corruption indicators during subtitle decoding; inspect application logs for references to vf_quirc or PGS/SUP subtitle handling failures; correlate with file uploads containing subtitle streams.
- vf_quirc
- av_image_copy_plane
- libquirc grayscale
- PGS/SUP subtitle
- heap corruption
What your security team should do
- Prioritize patching FFmpeg instances that process untrusted subtitles within 30 days given available exploit maturity
- Inventory all media pipelines and containers using FFmpeg 7.0-8.1.2
- Apply the upstream commit or upgrade to the next released version containing the fix
- Restrict untrusted subtitle file ingestion until patches are deployed
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-120931 Out of bounds write in WebGL in Google Chrome on on Android prior to 156.0.8078.47… CWE-787
- CVE-2026-61495 TinyUSB through 0.21.0, fixed in commit e85c2b8, contains an out-of-bounds write… CWE-787
- CVE-2026-121037 Out of bounds write in ANGLE in Google Chrome on on Windows prior to 157.0.8103.38… CWE-787
- CVE-2026-120952 An out-of-bounds write in the MongoDB Atlas SQL ODBC Driver may be triggered when a value… CWE-787
- CVE-2026-120959 A memory-handling flaw in the MongoDB Atlas SQL ODBC Driver can cause values returned for… CWE-787
- CVE-2026-63418 Monitoring Plugins is a suite of plugins for monitoring applications. CWE-787
- CVE-2026-40661 An out-of-bounds write (OOW) condition in the AMD Compressonator SDK could allow an… CWE-787
- CVE-2026-121513 Off-by-one Heap Overflow in µD3TN v0.15.1 SPP Parser allows Unauthenticated Remote… CWE-787