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

CVE-2025-60480: GPAC MP4Box Heap Buffer Overflow DoS Vulnerability

CVE-2025-60480 is a heap buffer overflow denial of service flaw in GPAC MP4Box that lets attackers crash the application using malicious AC4 files. This post explains its impact, affected versions, and mitigation steps.

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

CVE-2025-60480 is a heap buffer overflow in the gf_odf_ac4_cfg_alternative_info function located in /odf/descriptors.c of GPAC Project/MP4Box. The flaw affects version 2.5-DEV-rev1593-gfe88c3545-master and allows attackers to trigger a Denial of Service (DoS) by supplying a crafted AC4 audio file. The weakness is classified under [CWE-122: Heap-based Buffer Overflow]. Exploitation requires local access and user interaction, such as opening or processing a malicious media file with MP4Box.

Critical Impact

A crafted AC4 file processed by GPAC MP4Box can corrupt heap memory and crash the application, resulting in loss of availability for media processing workflows.

Affected Products

  • GPAC Project MP4Box 2.5-DEV-rev1593-gfe88c3545-master
  • GPAC multimedia framework components invoking gf_odf_ac4_cfg_alternative_info
  • Downstream tools and pipelines bundling the vulnerable GPAC build

Discovery Timeline

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

Technical Details for CVE-2025-60480

Vulnerability Analysis

The vulnerability resides in GPAC's object descriptor framework (/odf/descriptors.c), specifically within the gf_odf_ac4_cfg_alternative_info routine responsible for parsing AC4 configuration alternative information. When the function processes attacker-controlled fields from an AC4 stream, it writes beyond the bounds of a heap-allocated buffer. The out-of-bounds write corrupts adjacent heap metadata and application state, causing MP4Box to abort. The issue is tracked publicly in GitHub Issue #3295 and remediated in commit e02d1fd2.

Root Cause

The parser trusts length or count values embedded in the AC4 descriptor without validating them against the actual size of the destination heap buffer. The missing bounds check lets a malformed descriptor drive writes past the allocation. This is a classic [CWE-122] heap buffer overflow in untrusted media parsing code.

Attack Vector

An attacker crafts a malicious AC4 file and delivers it to a user or automated pipeline running the vulnerable MP4Box build. When the file is opened or converted, the descriptor parser mishandles the AC4 configuration, overflows the heap buffer, and crashes the process. The reported impact is denial of service with no confidentiality or integrity loss. Additional context is available on the OpenWall OSS-Security Mailing List and the InfoSec Exchange Post.

No verified public exploit code is available. See the GitHub Issue #3295 for reproducer details.

Detection Methods for CVE-2025-60480

Indicators of Compromise

  • Unexpected crashes or SIGABRT/SIGSEGV termination of MP4Box or GPAC-linked processes when parsing AC4 content.
  • Presence of untrusted AC4 (.ac4, .mp4 with AC4 track) files staged in media ingestion or transcoding directories.
  • Core dumps referencing gf_odf_ac4_cfg_alternative_info or descriptors.c in the stack trace.

Detection Strategies

  • Inventory hosts and container images that bundle GPAC 2.5-DEV builds predating commit e02d1fd2.
  • Hunt for process termination events where the parent is a media conversion workflow invoking MP4Box.
  • Correlate file ingestion telemetry with abnormal GPAC process exits to surface crafted AC4 payloads.

Monitoring Recommendations

  • Enable crash reporting and ingest core dump metadata from media processing hosts.
  • Alert on repeated non-zero exit codes from MP4Box jobs within short time windows.
  • Log and retain hashes of AC4 files submitted to shared transcoding services for retrospective analysis.

How to Mitigate CVE-2025-60480

Immediate Actions Required

  • Upgrade GPAC to a build that includes commit e02d1fd2 or later.
  • Restrict AC4 and MP4 ingestion to trusted sources until patching is complete.
  • Isolate media processing workloads in sandboxed containers with resource and crash recovery policies.

Patch Information

The upstream fix is available in the GPAC repository via commit e02d1fd2. Rebuild MP4Box and all GPAC-linked tooling from the patched source, then redeploy affected images. Confirm the fix by rerunning the reproducer from GitHub Issue #3295.

Workarounds

  • Disable AC4 track parsing in automated pipelines that do not require it.
  • Run MP4Box under a non-privileged service account with ulimit crash containment.
  • Pre-filter uploaded media with a validated parser before invoking GPAC on untrusted content.
bash
# Build and install the patched GPAC release
git clone https://github.com/gpac/gpac.git
cd gpac
git checkout e02d1fd24cdc26acb1b236ab38b3832cffcae21b
./configure --static-mp4box
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.