Skip to main content
Vulnerability Database/CVE-2025-60476

CVE-2025-60476: GPAC MP4Box Use-After-Free Vulnerability

CVE-2025-60476 is a heap use-after-free vulnerability in GPAC MP4Box that enables attackers to trigger denial of service through malicious AC4 files. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-60476 Overview

CVE-2025-60476 is a heap use-after-free vulnerability in the gf_odf_ac4_cfg_clean_list function located in /odf/descriptors.c of the GPAC Project. The flaw affects GPAC/MP4Box versions prior to 2.5. An attacker can trigger the condition by supplying a crafted AC4 media file to the MP4Box utility. Successful exploitation causes a denial of service (DoS) through memory corruption in the heap. The issue was reported publicly through the GPAC GitHub project and a corresponding proof-of-concept repository.

Critical Impact

Processing a malicious AC4 file with vulnerable MP4Box builds leads to heap use-after-free and a reliable application crash, disrupting media processing pipelines.

Affected Products

  • GPAC Project MP4Box versions prior to 2.5
  • Applications and services embedding the vulnerable GPAC libgpac descriptor parsing code
  • Media processing workflows that ingest untrusted AC4 content via GPAC

Discovery Timeline

  • 2026-10-21 - CVE-2025-60476 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2025-60476

Vulnerability Analysis

The vulnerability resides in gf_odf_ac4_cfg_clean_list, a routine responsible for cleaning up list structures associated with AC4 configuration descriptors. A heap-allocated object is freed while a reference to it remains reachable through the configuration list. Subsequent operations dereference the stale pointer, producing a classic use-after-free [CWE-416] condition.

When MP4Box parses a crafted AC4 file, the malformed descriptor layout drives execution into the cleanup path with inconsistent list state. The parser then operates on freed heap memory, which the allocator may have already repurposed. This leads to memory corruption and process termination.

The primary observed outcome is denial of service. Media processing pipelines and automated transcoding jobs that invoke MP4Box on attacker-controlled files will crash on encounter.

Root Cause

The root cause is improper lifetime management of AC4 configuration list entries within gf_odf_ac4_cfg_clean_list. The cleanup logic releases heap memory without clearing or detaching lingering references held by the surrounding descriptor structure in /odf/descriptors.c.

Attack Vector

An attacker crafts a malformed AC4 audio file and delivers it to a victim or an automated service that uses MP4Box. No authentication is required. The vulnerability is triggered during file parsing, so any workflow accepting untrusted media is in scope. Technical details and a reproducer are documented in the public GitHub Issue #3293 in GPAC and the GPAC MP4Box PoC Documentation.

No verified exploit code is reproduced here. Refer to the upstream references for parser-level details on the malformed AC4 descriptor layout required to reach the vulnerable cleanup path.

Detection Methods for CVE-2025-60476

Indicators of Compromise

  • Unexpected MP4Box process crashes or SIGSEGV signals when processing AC4 content
  • Heap corruption or use-after-free errors reported by AddressSanitizer or Valgrind during media ingest
  • Core dumps referencing gf_odf_ac4_cfg_clean_list in the call stack
  • AC4 files from untrusted origins appearing in media ingest directories

Detection Strategies

  • Enumerate installed GPAC/MP4Box binaries and compare versions against 2.5 or later
  • Monitor process telemetry for abnormal termination of MP4Box and child media workers
  • Enable allocator hardening and sanitizer builds in staging to catch use-after-free before production
  • Alert on new or unknown AC4 files uploaded to transcoding and asset-management services

Monitoring Recommendations

  • Collect endpoint and container logs for repeated MP4Box crashes correlated with specific input files
  • Track file hashes of ingested AC4 content and retain samples that trigger parser faults
  • Review build pipelines and CI jobs that package or embed libgpac for pinned vulnerable versions

How to Mitigate CVE-2025-60476

Immediate Actions Required

  • Upgrade GPAC/MP4Box to version 2.5 or later across all systems and container images
  • Audit third-party software and media pipelines that bundle libgpac and patch embedded copies
  • Restrict MP4Box execution to sandboxed service accounts with no network or sensitive filesystem access
  • Reject or quarantine AC4 files from untrusted sources until patched builds are deployed

Patch Information

The upstream fix is available in the GitHub Commit for GPAC, which corrects the list cleanup logic in gf_odf_ac4_cfg_clean_list. Rebuild and redeploy any downstream packages that statically link GPAC after applying the patch.

Workarounds

  • Disable AC4 processing in media pipelines where that codec is not required
  • Execute MP4Box inside a container or seccomp-restricted sandbox to contain crashes and limit blast radius
  • Validate input file structure with a separate hardened parser before invoking MP4Box
  • Rate-limit and monitor MP4Box invocations to detect automated abuse via malformed files
bash
# Verify installed MP4Box version and upgrade if below 2.5
MP4Box -version 2>&1 | head -n 1
# Example build from source after pulling the patched release
git clone https://github.com/gpac/gpac.git && cd gpac
git checkout v2.5
./configure && make -j$(nproc) && sudo make install

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.