
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-66039 is a signed integer overflow vulnerability in FFmpeg's MACE6 audio decoder that enables heap memory corruption and potential arbitrary code execution via a crafted CAF audio file. It affects FFmpeg through version 8.1.2 and was disclosed on July 24, 2026, with a fix available in commit aafb5c655edc76a753275c383ebb139feb032718. The vulnerability carries a CVSS v3.1 base score of 8.8 (High) and a CVSS v4.0 base score of 8.7 (High) (GitHub Advisory, VulnCheck).
The root cause is a signed integer overflow (CWE-190) in the mace_decode_frame() function, leading to a heap-based buffer overflow (CWE-122). An attacker crafts a CAF audio file with oversized bytes_per_packet and frames_per_packet values in the desc chunk; when FFmpeg processes this file, the output sample count computation overflows, causing an undersized buffer to be allocated on the heap. The subsequent write of audio data into this undersized buffer constitutes an out-of-bounds heap write (CWE-787), which can corrupt adjacent heap memory structures. The fix is documented in FFmpeg pull request #23631 and applied in commit aafb5c6 (GitHub Advisory, FFmpeg Commit).
Successful exploitation allows an unauthenticated remote attacker to corrupt heap memory and potentially achieve arbitrary code execution with the privileges of the FFmpeg process. The confidentiality, integrity, and availability of the affected system are all rated High, meaning an attacker could read sensitive data, modify system state, or crash the application. Any application or service that uses FFmpeg to process user-supplied or remotely fetched CAF audio files is at risk, including media servers, transcoding pipelines, and desktop media players (GitHub Advisory, VulnCheck).
desc chunk containing oversized bytes_per_packet and frames_per_packet values chosen to trigger a signed integer overflow when multiplied during output sample count computation in mace_decode_frame().bytes_per_packet/frames_per_packet values and performs the overflowing arithmetic, resulting in an undersized heap buffer allocation..caf audio files in temporary directories, download folders, or media processing queues; files with unusually large or malformed desc chunk metadata.SIGSEGV, SIGABRT) when processing CAF files; unexpected child processes spawned by the media processing application.mace_decode_frame() in the stack trace.Update FFmpeg to a version that includes commit aafb5c655edc76a753275c383ebb139feb032718 (post-8.1.2). As a workaround, restrict or disable processing of CAF audio files from untrusted or external sources, and implement file type validation and input sanitization in media processing workflows. Organizations running automated transcoding pipelines should apply the patch as a priority, given the potential for remote exploitation via malicious media files (GitHub Advisory, FFmpeg Commit).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."