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-60487 Overview
CVE-2025-60487 affects GPAC Project/MP4Box versions before 2.5. A segmentation violation in the gf_isom_get_esd function located in /isomedia/isom_read.c allows attackers to trigger a denial-of-service (DoS) condition. Exploitation requires an attacker to supply a crafted XML file to the vulnerable binary. The flaw sits in the ISO Base Media File Format parsing path used by MP4Box, GPAC's multimedia packaging utility.
Critical Impact
A crafted XML input processed by MP4Box causes a segmentation fault in gf_isom_get_esd, terminating the process and producing a reliable denial-of-service condition against workflows that parse untrusted media descriptors.
Affected Products
- GPAC Project MP4Box versions prior to 2.5
- GPAC multimedia framework libgpac ISO media parser (isomedia/isom_read.c)
- Downstream applications that embed GPAC for MP4/ISO BMFF processing
Discovery Timeline
- 2026-10-21 - CVE-2025-60487 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2025-60487
Vulnerability Analysis
The vulnerability is a Null Pointer Dereference / Out-of-Bounds Read class issue inside gf_isom_get_esd, GPAC's routine for retrieving the Elementary Stream Descriptor (ESD) of a track. When MP4Box processes a specially crafted XML input, downstream calls into the ISO media parser dereference a pointer that was never populated, triggering a segmentation violation (SIGSEGV). The crash halts the MP4Box process and any pipeline depending on it.
GPAC is widely used in media conversion and streaming toolchains, including automated transcoding backends. Any service that parses attacker-controlled multimedia descriptors with vulnerable MP4Box binaries can be stopped on demand. The fix merged in commit e6d01820d7bf3967d931fedb379ee5f209bc133b hardens several unchecked return values across filedump.c and compositor code.
Root Cause
The root cause is missing validation of return values and node types in gf_isom_get_esd and adjacent helpers. Functions such as gf_isom_get_sample_info can return NULL, but callers used the result without checking, dereferencing invalid memory. The compositor path in mpeg4_geometry_ifs2d.c similarly dereferences a coordinate node without verifying its MPEG-4 tag type.
Attack Vector
An attacker crafts a malformed XML descriptor accepted by MP4Box as input. When the parser traverses the structure, the vulnerable code path is reached and the process crashes. Exploitation is local to the parsing process but can be triggered remotely wherever MP4Box ingests user-supplied media descriptions, such as upload portals, CI jobs, or cloud transcoders.
// Patch 1: applications/mp4box/filedump.c - validate sample pointer before use
u64 doffset;
GF_ISOSample *samp = gf_isom_get_sample_info(file, track, i+1, &di, &doffset);
+ if (!samp)
+ continue;
#ifndef GPAC_DISABLE_ISOM_FRAGMENTS
traf_start = gf_isom_sample_is_fragment_start(file, track, i+1, NULL);
Source: GPAC commit e6d01820
// Patch 2: src/compositor/mpeg4_geometry_ifs2d.c - verify node tag type
return;
}
if (!ifs2D->coord) return;
+ if ((gf_node_get_tag(ifs2D->coord) != TAG_MPEG4_Coordinate) && (gf_node_get_tag(ifs2D->coord) != TAG_MPEG4_Coordinate2D))
+ return;
ifs2d_check_changes(node, stack, tr_state);
Source: GPAC commit e6d01820
Detection Methods for CVE-2025-60487
Indicators of Compromise
- Repeated SIGSEGV crashes of MP4Box or gpac processes correlated with media or XML input ingestion.
- Core dumps whose backtrace contains gf_isom_get_esd or gf_isom_get_sample_info frames.
- Unexpected termination of transcoding workers immediately after accepting user-uploaded media files.
Detection Strategies
- Inventory hosts running GPAC and compare installed versions against the 2.5 release baseline using package manifests or MP4Box -version.
- Hunt reference links tied to the public PoC such as the sigdevel PoC repository in web proxy and file upload logs.
- Monitor process termination events for MP4Box exiting with signal 11, especially under non-interactive service accounts.
Monitoring Recommendations
- Forward kernel segfault messages (kernel: MP4Box[pid]: segfault at ...) to the SIEM for alerting.
- Alert on crash loops of media processing containers in Kubernetes or systemd-managed workers.
- Correlate upload metadata with downstream parser failures to surface attacker-controlled inputs.
How to Mitigate CVE-2025-60487
Immediate Actions Required
- Upgrade GPAC/MP4Box to version 2.5 or later across all workstations, build servers, and transcoding pipelines.
- Isolate MP4Box processing to sandboxed, resource-limited containers so a crash cannot affect co-located services.
- Reject or sanitize untrusted XML and media descriptors before passing them to MP4Box.
Patch Information
The fix is included in GPAC commit e6d01820d7bf3967d931fedb379ee5f209bc133b and shipped in the 2.5 release line. Issue tracking is available in GPAC GitHub Issue #3320. Rebuild downstream distributions and container images that bundle GPAC after applying the update.
Workarounds
- Disable MP4Box ingestion of XML-based descriptor inputs where business logic allows.
- Run MP4Box under a supervisor that restarts crashed workers and rate-limits input per source to blunt DoS attempts.
- Restrict file upload MIME types and perform structural validation before invoking GPAC utilities.
# Verify installed MP4Box version and enforce minimum 2.5
MP4Box -version 2>&1 | head -n 1
# Example sandboxed invocation using systemd-run with resource limits
systemd-run --scope -p MemoryMax=512M -p CPUQuota=50% \
--uid=mp4box --gid=mp4box \
/usr/local/bin/MP4Box -info /input/untrusted.mp4
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

