CVE-2026-66039: Integer Overflow and Heap Out-of-Bounds Write in FFmpeg MACE6 CAF Decoder
- Vendor
- Ffmpeg
CVE-2026-66039 is a signed integer overflow vulnerability in FFmpeg through version 8.1.2 in the MACE6 audio decoder. A crafted CAF file can supply oversized bytes_per_packet and frames_per_packet values in its desc chunk. During output sample-count computation in mace_decode_frame(), these values can overflow, producing an undersized output-buffer allocation followed by a heap out-of-bounds write. The issue is fixed by FFmpeg commit aafb5c6.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation corrupts heap memory through an out-of-bounds write. The resulting memory corruption could enable arbitrary code execution in the context of the application processing the malicious CAF file.
Mitigation
If you can’t patch tonight, do this now.
Until fixed packages can be deployed, avoid processing untrusted CAF files with affected FFmpeg installations. Restrict exposure of FFmpeg-backed media-processing services and isolate transcoding or media-decoding workloads where practical.
Remediation
Patch, then assume compromise.
Upgrade FFmpeg to a version that contains the fix introduced by commit aafb5c6. For Fedora 44, update to ffmpeg-8.1.3-1.fc44 or a later Fedora-provided package version. Apply the fixed FFmpeg packages supplied by the relevant operating-system vendor for other supported distributions.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-66039 exploited in the wild?
- As of Sep 28, 2026, Mallory has no reports of CVE-2026-66039 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-66039?
- As of Sep 28, 2026, Mallory has found no public exploit for CVE-2026-66039.
- Is there a patch for CVE-2026-66039?
- Upgrade FFmpeg to a version that contains the fix introduced by commit aafb5c6. For Fedora 44, update to ffmpeg-8.1.3-1.fc44 or a later Fedora-provided package version.
- What products are affected by CVE-2026-66039?
- Ffmpeg.
- How severe is CVE-2026-66039?
- CVE-2026-66039 has a CVSS v4 score of 8.7 (High) and an EPSS score of 0.44% (30th percentile) as of Sep 28, 2026.
Recent activity
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.