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-60497 Overview
CVE-2025-60497 is a denial-of-service vulnerability in GPAC Project MP4Box versions before 2.5. A segmentation violation occurs in the GetESD function located in src/isomedia/track.c when the parser processes a malformed MP4 container. Attackers can trigger the crash by supplying a crafted MP4 file for processing. The flaw is tracked under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer. Exploitation requires local access and user interaction, which limits remote abuse but still affects workflows that automate MP4 processing with GPAC.
Critical Impact
Attackers can crash MP4Box and any application embedding the vulnerable GPAC isomedia component by delivering a malicious MP4 file for parsing.
Affected Products
- GPAC Project MP4Box versions before 2.5
- GPAC libgpacisomedia component (src/isomedia/track.c)
- Downstream tooling that invokes GetESD on untrusted MP4 input
Discovery Timeline
- 2026-10-21 - CVE-2025-60497 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2025-60497
Vulnerability Analysis
The vulnerability resides in the GetESD routine within src/isomedia/track.c, part of GPAC's ISO base media file format implementation. During track reference parsing, the function dereferences a dpnd track dependency structure without validating that its trackIDCount field is non-zero. When a crafted MP4 file contains a track reference with an empty dependency list, downstream code reads from a zero-length array and triggers a segmentation violation. The outcome is a process crash, producing a denial-of-service condition for MP4Box and any host application linked against libgpac.
Root Cause
The root cause is missing bounds validation on an untrusted structure field. The code assumed that a non-null dpnd pointer implied a valid, populated trackIDs array. Attacker-controlled input violates that assumption, allowing out-of-bounds access flagged as [CWE-119].
Attack Vector
Exploitation requires an attacker to deliver a crafted MP4 file and convince a user or automated pipeline to open it with MP4Box or another GPAC-based tool. The attack is local and does not require authentication, but user interaction is required to initiate parsing. The impact is limited to availability; the issue does not expose confidentiality or integrity.
// Security patch in src/isomedia/track.c - Fixed #3336
e = Track_FindRef(trak, ref , &dpnd);
if (e) return e;
- if (dpnd) {
+ if (dpnd && dpnd->trackIDCount) {
//ONLY ONE STREAM DEPENDENCY IS ALLOWED
if (!k && (dpnd->trackIDCount != 1)) return GF_ISOM_INVALID_MEDIA;
//fix the spec: where is the index located ??
Source: GPAC commit 91083fcf. The patch adds a dpnd->trackIDCount check so the function skips dependency processing when the track reference is empty.
Detection Methods for CVE-2025-60497
Indicators of Compromise
- Repeated MP4Box process crashes or SIGSEGV signals when parsing MP4 content from untrusted sources.
- Core dumps referencing GetESD or Track_FindRef frames within libgpac.
- MP4 files containing track reference atoms (tref) with zero-length dependency arrays.
Detection Strategies
- Scan media ingestion pipelines for GPAC versions earlier than 2.5 using software bill of materials (SBOM) tooling.
- Hunt for crash telemetry on media processing hosts and correlate with recent file uploads or user downloads.
- Inspect sandboxed MP4 parsing jobs for abnormal exit codes tied to segmentation faults.
Monitoring Recommendations
- Alert on crash loops of MP4Box or embedded GPAC consumers in container and workstation telemetry.
- Log and retain file hashes of MP4 inputs processed by media conversion workflows for retrospective analysis.
- Track creation of core dumps in directories used by transcoding or forensic analysis tooling.
How to Mitigate CVE-2025-60497
Immediate Actions Required
- Upgrade GPAC and MP4Box to version 2.5 or later across all workstations, build agents, and media processing servers.
- Restrict MP4Box execution to vetted MP4 inputs and avoid processing attachments from untrusted sources.
- Isolate media parsing workloads in sandboxed or containerized environments with automatic restart policies.
Patch Information
The fix is committed in GPAC commit 91083fcf and tracked in GPAC issue #3336. A reproducer is published in the sigdevel PoC repository and discussed in this InfoSec Exchange post. Rebuild downstream packages that statically link libgpac after applying the patch.
Workarounds
- Block or quarantine MP4 files from untrusted senders at the mail and web gateways until patching completes.
- Disable automated MP4 parsing in media pipelines that cannot be upgraded immediately.
- Run MP4Box under a non-privileged service account with resource limits to contain crash impact.
# Verify installed GPAC version and upgrade from source
MP4Box -version
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

