Skip to main content
Mallory
← Back to News
endpoint-software-vulnerabilitywidely-deployed-product-advisoryproof-of-concept-release

FFmpeg MACE6 Decoder Flaw Enables Heap Out-of-Bounds Write via Crafted CAF Files

Vulnerability Disclosure · 4 sources · Updated 2d ago · First seen Jul 24, 2026

FFmpeg MACE6 Decoder Flaw Enables Heap Out-of-Bounds Write via Crafted CAF Files

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.

Why it matters

Impact assessment

FFmpeg deployments that decode untrusted media are affected, including media processing backends, content moderation pipelines, desktop applications, browsers or players embedding FFmpeg, and any service that ingests CAF audio files. The flaw is high severity because a crafted file can cause heap corruption and potentially code execution when a user or automated workflow opens or processes the file.

Exposure is potentially broad because FFmpeg is widely embedded across products, but exploitation requires delivery of a malicious CAF file and user interaction or automated processing of that file. No confirmed in-the-wild exploitation is stated in the provided references.

Affected populations

  • Organizations running FFmpeg through version 8.1.2
  • Vendors and applications statically or dynamically linking vulnerable FFmpeg builds
  • Media ingestion, transcoding, archival, and analysis systems that accept CAF inputs
  • End users opening untrusted audio/media files in software built on FFmpeg

Severity and business impact

  • Potential confidentiality, integrity, and availability impact is high per CVSS vector
  • Likely outcomes include process crash, service disruption, and possible remote code execution in the decoding context
  • Multi-tenant media processing environments face elevated risk if untrusted uploads are decoded automatically
  • Reputational and operational impact is higher for SaaS platforms that process customer-supplied media at scale

Scope and exploitation status

  • Scope is widespread at the software supply-chain level because FFmpeg is broadly reused
  • Practical exploitation is targeted to workflows that parse CAF files and invoke the MACE6 decoder path
  • No public incident reporting or exploitation-in-the-wild evidence is included in the references
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events · Jun 29, 2026 – Jul 24, 2026
  1. Jul 24, 20264mo ago

    CVE-2026-66039 disclosed for FFmpeg MACE6 CAF parsing flaw

    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.

    CVE-2026-66039 - FFmpeg MACE6 Audio Decoder Heap Out-of-Bounds Write via CAF File
  2. Jun 29, 20265mo ago

    FFmpeg commits fix for MACE6 sample count integer overflow

    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.

    Making sure you're not a bot!
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Ffmpeg

Organizations

1 linked
Ffmpeg
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.