Description
FFmpeg through 8.1.2, fixed in commit aafb5c6, contains a signed integer overflow vulnerability in the MACE6 audio decoder that allows attackers to corrupt heap memory by supplying a crafted CAF file with a malicious bytes_per_packet value. Attackers can craft a CAF file with oversized bytes_per_packet and frames_per_packet values in the desc chunk to trigger an integer overflow in mace_decode_frame() during output sample count computation, resulting in an undersized buffer allocation and heap out-of-bounds write that could enable code execution.
Published: 2026-07-24
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

FFmpeg versions up through 8.1.2 contain a signed integer overflow in the MACE6 audio decoder. When the decoder parses a CAF file that contains an oversized bytes_per_packet and frames_per_packet value in the desc chunk, it incorrectly calculates the number of output samples, allocating a buffer that is too small. Writing output samples past the end of this undersized buffer causes a heap out‑of‑bounds write that can corrupt memory and potentially be abused to execute arbitrary code.

Affected Systems

The vulnerability applies to FFmpeg releases through 8.1.2 that include the MACE6 audio decoder and process CAF files. Any installation that has this decoder enabled and receives CAF media is exposed, regardless of the specific application or operating system. The affected product is identified as FFmpeg:FFmpeg.

Risk and Exploitability

The CVSS score of 8.7 reflects a high severity, and the EPSS score of less than 1% indicates the current likelihood of exploitation is low. The vulnerability is not listed in CISA’s KEV catalog. It requires an attacker to supply a crafted CAF file that triggers the integer overflow in mace_decode_frame() during output sample count computation, which then leads to a heap write beyond bounds. While the exact exploit chain is not detailed in the public description, the nature of the flaw implies that successful exploitation could allow an attacker to gain code execution privileges within the context of the FFmpeg process.

Generated by OpenCVE AI on August 2, 2026 at 13:54 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the FFmpeg patch introduced in commit aafb5c655edc76a753275c383ebb139feb032718 to fix the integer overflow in the MACE6 audio decoder.
  • If an immediate upgrade is not possible, reconfigure FFmpeg to disable the MACE6 decoder so that the vulnerable code path is never exercised.
  • Run FFmpeg in a sandboxed or hardened environment to limit the impact of any remaining untrusted CAF files.

Generated by OpenCVE AI on August 2, 2026 at 13:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 31 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-787
References
Metrics threat_severity

None

threat_severity

Important


Tue, 28 Jul 2026 01:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*

Mon, 27 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 24 Jul 2026 23:30:00 +0000

Type Values Removed Values Added
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Vendors & Products Ffmpeg
Ffmpeg ffmpeg

Fri, 24 Jul 2026 20:15:00 +0000

Type Values Removed Values Added
Description FFmpeg through 8.1.2, fixed in commit aafb5c6, contains a signed integer overflow vulnerability in the MACE6 audio decoder that allows attackers to corrupt heap memory by supplying a crafted CAF file with a malicious bytes_per_packet value. Attackers can craft a CAF file with oversized bytes_per_packet and frames_per_packet values in the desc chunk to trigger an integer overflow in mace_decode_frame() during output sample count computation, resulting in an undersized buffer allocation and heap out-of-bounds write that could enable code execution.
Title FFmpeg MACE6 Audio Decoder Heap Out-of-Bounds Write via CAF File
Weaknesses CWE-122
CWE-190
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-29T03:55:37.612Z

Reserved: 2026-07-23T20:45:17.816Z

Link: CVE-2026-66039

cve-icon Vulnrichment

Updated: 2026-07-27T16:03:26.593Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-24T20:18:20.880

Modified: 2026-08-07T00:46:17.303

Link: CVE-2026-66039

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-24T19:42:42Z

Links: CVE-2026-66039 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T14:00:05Z

Weaknesses