Libav: 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 issue is fixed in commit 4da9812, which corresponds to version 8.1.3 and later.
AI Analysis
Technical Summary
A heap out-of-bounds write vulnerability exists in FFmpeg versions 7.0 through 8.1.2 within the vf_quirc filter. The vulnerability is triggered by supplying a crafted PGS/SUP subtitle file where the second presentation frame has larger dimensions than the first. This causes av_image_copy_plane() to copy more data than the allocated size of the libquirc grayscale image buffer, resulting in heap corruption. The corruption can lead to process crashes and potentially allow code execution. The flaw is tracked as CVE-2026-66041 and is fixed in commit 4da9812, which is included in version 8.1.3.
Potential Impact
An attacker can cause heap corruption by providing a specially crafted subtitle file, which may lead to a denial of service (process crash) or potentially arbitrary code execution. The vulnerability has a high impact on confidentiality, integrity, and availability as indicated by the CVSS vector (C:H/I:H/A:H). No known exploits in the wild have been reported.
Mitigation Recommendations
A fix is available in FFmpeg version 8.1.3 and later, which includes commit 4da9812 addressing this vulnerability. Users should upgrade to version 8.1.3 or later to remediate this issue. No vendor advisory content was provided to indicate alternative mitigations or temporary fixes.
Libav: 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 issue is fixed in commit 4da9812, which corresponds to version 8.1.3 and later.
CVSS v3.1
Score 8.8high
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
A heap out-of-bounds write vulnerability exists in FFmpeg versions 7.0 through 8.1.2 within the vf_quirc filter. The vulnerability is triggered by supplying a crafted PGS/SUP subtitle file where the second presentation frame has larger dimensions than the first. This causes av_image_copy_plane() to copy more data than the allocated size of the libquirc grayscale image buffer, resulting in heap corruption. The corruption can lead to process crashes and potentially allow code execution. The flaw is tracked as CVE-2026-66041 and is fixed in commit 4da9812, which is included in version 8.1.3.
Potential Impact
An attacker can cause heap corruption by providing a specially crafted subtitle file, which may lead to a denial of service (process crash) or potentially arbitrary code execution. The vulnerability has a high impact on confidentiality, integrity, and availability as indicated by the CVSS vector (C:H/I:H/A:H). No known exploits in the wild have been reported.
Mitigation Recommendations
A fix is available in FFmpeg version 8.1.3 and later, which includes commit 4da9812 addressing this vulnerability. Users should upgrade to version 8.1.3 or later to remediate this issue. No vendor advisory content was provided to indicate alternative mitigations or temporary fixes.
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: 08/08/2026, 16:57:46 UTC
Last updated: 09/07/2026, 10:52:10 UTC
Views: 64
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.