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… (CVE-2026-66041)
FFmpeg versions 7.0 through 8.1.2 contain a heap out-of-bounds write vulnerability in the vf_quirc filter. This flaw arises when processing crafted PGS/SUP subtitle files with mismatched frame dimensions, leading to heap corruption and potential process crashes or code execution. The vulnerability is fixed in commit 4da9812.
AI Analysis
Technical Summary
The vulnerability in FFmpeg 7.0 through 8.1.2 involves a heap out-of-bounds write in the vf_quirc filter. When processing a PGS/SUP subtitle file where the second presentation frame has larger dimensions than the first, the function av_image_copy_plane() copies more data than the allocated size of the libquirc grayscale image buffer. This causes heap corruption, which can crash the process and potentially allow code execution. The issue is fixed in commit 4da9812. No patch links are provided in the data, and no known exploits are reported in the wild.
Potential Impact
An attacker can cause heap memory corruption by providing a specially crafted subtitle file with mismatched frame dimensions. This can lead to a process crash and may enable remote code execution due to the heap out-of-bounds write. The vulnerability affects the stability and security of applications using the vulnerable FFmpeg versions with the vf_quirc filter enabled.
Mitigation Recommendations
A fix for this vulnerability is available in commit 4da9812. Users should update FFmpeg to a version that includes this commit to remediate the issue. Since no official patch version or vendor advisory is provided, users should monitor the FFmpeg project for official releases containing this fix. Until updated, avoid processing untrusted PGS/SUP subtitle files with the vf_quirc filter enabled.
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… (CVE-2026-66041)
Description
FFmpeg versions 7.0 through 8.1.2 contain a heap out-of-bounds write vulnerability in the vf_quirc filter. This flaw arises when processing crafted PGS/SUP subtitle files with mismatched frame dimensions, leading to heap corruption and potential process crashes or code execution. The vulnerability is fixed in commit 4da9812.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in FFmpeg 7.0 through 8.1.2 involves a heap out-of-bounds write in the vf_quirc filter. When processing a PGS/SUP subtitle file where the second presentation frame has larger dimensions than the first, the function av_image_copy_plane() copies more data than the allocated size of the libquirc grayscale image buffer. This causes heap corruption, which can crash the process and potentially allow code execution. The issue is fixed in commit 4da9812. No patch links are provided in the data, and no known exploits are reported in the wild.
Potential Impact
An attacker can cause heap memory corruption by providing a specially crafted subtitle file with mismatched frame dimensions. This can lead to a process crash and may enable remote code execution due to the heap out-of-bounds write. The vulnerability affects the stability and security of applications using the vulnerable FFmpeg versions with the vf_quirc filter enabled.
Mitigation Recommendations
A fix for this vulnerability is available in commit 4da9812. Users should update FFmpeg to a version that includes this commit to remediate the issue. Since no official patch version or vendor advisory is provided, users should monitor the FFmpeg project for official releases containing this fix. Until updated, avoid processing untrusted PGS/SUP subtitle files with the vf_quirc filter enabled.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-frhp-m687-9g3q
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-66041"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a6542289c2644c7f808a014
Added to database: 07/25/2026, 23:09:28 UTC
Last enriched: 07/25/2026, 23:54:21 UTC
Last updated: 07/26/2026, 05:38:48 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.