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

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

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

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-60482 Overview

CVE-2025-60482 is a heap use-after-free vulnerability in GPAC Project/MP4Box version 2.5-DEV-rev1593-gfe88c3545-master. The flaw resides in the gf_odf_ac4_cfg_clean_list function within /odf/descriptors.c. Attackers can trigger the condition by supplying a crafted AC4 audio file to the parser. Successful exploitation causes a denial of service (DoS) in the affected process. GPAC is a widely used multimedia framework for packaging, streaming, and processing MP4 and related container formats, making the parser a common target for file-based attacks.

Critical Impact

A crafted AC4 file passed to MP4Box triggers a heap use-after-free in gf_odf_ac4_cfg_clean_list, enabling denial of service against systems that process untrusted media.

Affected Products

  • GPAC Project MP4Box version 2.5-DEV-rev1593-gfe88c3545-master
  • GPAC multimedia framework builds incorporating the affected descriptors.c code
  • Applications and pipelines embedding vulnerable GPAC libraries for AC4 parsing

Discovery Timeline

  • 2026-10-19 - CVE-2025-60482 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2025-60482

Vulnerability Analysis

The vulnerability is a heap use-after-free [CWE-416] in the AC4 configuration cleanup path of GPAC MP4Box. The function gf_odf_ac4_cfg_clean_list in /odf/descriptors.c operates on heap-allocated list entries during cleanup of AC4 configuration descriptors. When a malformed AC4 file is parsed, the function references heap memory after it has been released. This produces undefined behavior in the parser process and typically terminates MP4Box with a crash. The condition is reachable through standard MP4Box invocations against attacker-supplied media files.

Root Cause

The root cause is improper lifetime management of list elements maintained for AC4 configuration state. During cleanup, pointers in gf_odf_ac4_cfg_clean_list reference objects already freed earlier in the parsing flow. The patched commit e02d1fd24cdc26acb1b236ab38b3832cffcae21b adjusts the cleanup logic to prevent reuse of released allocations.

Attack Vector

An attacker crafts an AC4 file with malformed configuration structures and delivers it to a user or automated workflow that processes media with MP4Box or GPAC libraries. Parsing the file triggers the use-after-free during descriptor cleanup. The current impact is denial of service against the parser process. Additional context is available in GitHub Issue #3297 and the infosec.exchange disclosure post.

No verified public exploitation code is available. The vulnerability mechanism is documented in the upstream issue and commit referenced above.

Detection Methods for CVE-2025-60482

Indicators of Compromise

  • Repeated crashes or abnormal terminations of MP4Box or applications linked against GPAC libraries
  • Core dumps referencing gf_odf_ac4_cfg_clean_list or descriptors.c in the stack trace
  • Processing of AC4 (.ac4, .mp4 with AC4 tracks) files from untrusted sources immediately preceding a crash

Detection Strategies

  • Monitor transcoding, packaging, and ingest pipelines for MP4Box exit codes consistent with signal termination (SIGSEGV, SIGABRT)
  • Enable AddressSanitizer (ASan) in test environments to surface use-after-free conditions during media parsing
  • Correlate media processing failures with the source and hash of input files to identify malicious submissions

Monitoring Recommendations

  • Log all invocations of MP4Box and GPAC-based tools, including input filenames and exit status
  • Track file uploads containing AC4 audio streams for sandboxed analysis before production processing
  • Alert on unexpected process crashes within media services, container workloads, or CI jobs that handle user-supplied media

How to Mitigate CVE-2025-60482

Immediate Actions Required

  • Rebuild GPAC from a revision that includes commit e02d1fd24cdc26acb1b236ab38b3832cffcae21b
  • Restrict MP4Box invocations to trusted inputs until the fix is deployed across build and runtime environments
  • Audit internal services and CI jobs that invoke GPAC against user-submitted content

Patch Information

The fix is available upstream in the GPAC repository via commit e02d1fd24cdc26acb1b236ab38b3832cffcae21b. Users running the affected development revision 2.5-DEV-rev1593-gfe88c3545-master should pull the latest master or a tagged release that incorporates the commit. Downstream distributions packaging GPAC should backport the commit to their maintained branches. Track the upstream discussion in GitHub Issue #3297 for additional remediation guidance.

Workarounds

  • Reject or quarantine AC4 audio streams at the ingest boundary until a patched GPAC build is in place
  • Execute MP4Box inside sandboxes or containers with strict resource limits and no sensitive file system access
  • Disable automated processing of externally sourced media files in workflows that cannot be isolated
bash
# Build patched GPAC from source
git clone https://github.com/gpac/gpac.git
cd gpac
git checkout master
git log --oneline | grep e02d1fd24cdc26acb1b236ab38b3832cffcae21b
./configure && make -j$(nproc)
sudo make install
MP4Box -version

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.