FFmpeg through 8.1.2, fixed in commit aafb5c6, contains a signed integer overflow vulnerability in the MACE6 audio decoder that allows attackers to… (CVE-2026-66039)
FFmpeg versions through 8.1.2 contain a signed integer overflow vulnerability in the MACE6 audio decoder. This flaw allows attackers to craft a malicious CAF audio file with specially manipulated bytes_per_packet and frames_per_packet values. The vulnerability triggers an integer overflow during output sample count calculation, causing an undersized buffer allocation and a heap out-of-bounds write. This memory corruption could potentially enable code execution. The issue was fixed in commit aafb5c6.
AI Analysis
Technical Summary
A signed integer overflow vulnerability exists in FFmpeg's MACE6 audio decoder in versions up to 8.1.2. By supplying a crafted CAF file with oversized bytes_per_packet and frames_per_packet values in the desc chunk, an attacker can trigger an integer overflow in the mace_decode_frame() function during output sample count computation. This results in an undersized buffer allocation and subsequent heap out-of-bounds write, which could lead to arbitrary code execution. The vulnerability is tracked as CVE-2026-66039 and was fixed in commit aafb5c6.
Potential Impact
Successful exploitation allows an attacker to corrupt heap memory via a crafted CAF file, potentially leading to arbitrary code execution within the context of the vulnerable application. This poses a high security risk as it can lead to system compromise.
Mitigation Recommendations
A fix for this vulnerability is available in the FFmpeg codebase as of commit aafb5c6. Users should update to a version that includes this commit to remediate the issue. Patch status is not explicitly confirmed in the provided data, so users should verify the presence of this fix in their FFmpeg version. No vendor advisory content is provided; therefore, check the official FFmpeg repository or security advisories for the exact patched version and apply updates accordingly.
FFmpeg through 8.1.2, fixed in commit aafb5c6, contains a signed integer overflow vulnerability in the MACE6 audio decoder that allows attackers to… (CVE-2026-66039)
Description
FFmpeg versions through 8.1.2 contain a signed integer overflow vulnerability in the MACE6 audio decoder. This flaw allows attackers to craft a malicious CAF audio file with specially manipulated bytes_per_packet and frames_per_packet values. The vulnerability triggers an integer overflow during output sample count calculation, causing an undersized buffer allocation and a heap out-of-bounds write. This memory corruption could potentially enable code execution. The issue was fixed in commit aafb5c6.
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
A signed integer overflow vulnerability exists in FFmpeg's MACE6 audio decoder in versions up to 8.1.2. By supplying a crafted CAF file with oversized bytes_per_packet and frames_per_packet values in the desc chunk, an attacker can trigger an integer overflow in the mace_decode_frame() function during output sample count computation. This results in an undersized buffer allocation and subsequent heap out-of-bounds write, which could lead to arbitrary code execution. The vulnerability is tracked as CVE-2026-66039 and was fixed in commit aafb5c6.
Potential Impact
Successful exploitation allows an attacker to corrupt heap memory via a crafted CAF file, potentially leading to arbitrary code execution within the context of the vulnerable application. This poses a high security risk as it can lead to system compromise.
Mitigation Recommendations
A fix for this vulnerability is available in the FFmpeg codebase as of commit aafb5c6. Users should update to a version that includes this commit to remediate the issue. Patch status is not explicitly confirmed in the provided data, so users should verify the presence of this fix in their FFmpeg version. No vendor advisory content is provided; therefore, check the official FFmpeg repository or security advisories for the exact patched version and apply updates accordingly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-84qc-6h9r-4w33
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-66039"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a6542289c2644c7f808a029
Added to database: 07/25/2026, 23:09:28 UTC
Last enriched: 07/25/2026, 23:54:41 UTC
Last updated: 07/26/2026, 05:49:53 UTC
Views: 6
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.