FFmpeg through version 8.1.2 is affected by CVE-2026-66039, a high-severity flaw in the MACE6 audio decoder that can be triggered with a crafted CAF file. The vulnerability stems from a signed integer overflow in mace_decode_frame() when attacker-controlled bytes_per_packet and frames_per_packet values are parsed from the file's desc chunk, causing the decoder to miscalculate output sample counts.
The overflow can lead to an undersized heap allocation followed by a heap out-of-bounds write, creating a path to memory corruption and possible code execution in contexts where a user opens or processes a malicious media file. The issue is mapped to CWE-190 and CWE-122, carries a CVSS v3.1 rating of AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, and was fixed in FFmpeg commit aafb5c655edc76a753275c383ebb139feb032718, which rejects sample counts that overflow int.

See affected versions and whether adversaries are exploiting it.
2 events from the most recent confirmed update back to the earliest known activity.
A vulnerability affecting FFmpeg through version 8.1.2 was disclosed as CVE-2026-66039. The issue is a signed integer overflow in the MACE6 audio decoder that can be triggered by a crafted CAF file, causing an undersized allocation and heap out-of-bounds write with possible code execution impact.
FFmpeg committed a fix titled "avcodec/mace: reject sample counts that overflow int," addressing the MACE6 audio decoder flaw later tracked as CVE-2026-66039. The fix is identified as commit aafb5c655edc76a753275c383ebb139feb032718.
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
4 references tracked. Mallory keeps watching after this page renders.
cvefeed.io
Open sourcevulncheck.com
Open sourcecode.ffmpeg.org
Open sourcecode.ffmpeg.org
Open sourceMap indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.