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-60489 Overview
CVE-2025-60489 is a NULL pointer dereference vulnerability in the dasher_insert_timeline_entry function located in /filters/dasher.c within the GPAC Project's MP4Box multimedia framework. The flaw affects GPAC versions prior to 2.5. Attackers can trigger the condition by supplying a crafted MP4 file to a vulnerable MP4Box process. Successful exploitation causes a Denial of Service (DoS) through process termination. The issue was tracked publicly as GPAC issue #3325 and resolved in a security patch to src/filters/dasher.c and src/filters/isoffin_load.c.
Critical Impact
A crafted MP4 file processed by MP4Box can crash the application, disrupting any automated media processing pipeline that relies on GPAC.
Affected Products
- GPAC Project MP4Box versions prior to 2.5
- GPAC multimedia framework dasher filter component
- Downstream applications bundling the vulnerable libgpac build
Discovery Timeline
- 2026-10-21 - CVE-2025-60489 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2025-60489
Vulnerability Analysis
The vulnerability resides in the dasher_insert_timeline_entry function inside src/filters/dasher.c. The function retrieves the last entry of a timeline list using gf_list_last(tl->entries) and stores it in pointer s. When prev_patch_dur is non-zero but the list is empty, s is NULL. The code then dereferences s to access s->repeat_count and related split-entry fields without a NULL check. This classifies as a NULL Pointer Dereference condition [CWE-476] leading to Denial of Service.
Root Cause
The root cause is a missing precondition check before dereferencing a pointer returned by a list accessor. The patch adds the guard if (s && prev_patch_dur) so the split-entry logic executes only when the previous entry exists. A secondary fix in src/filters/isoffin_load.c releases a dynamically allocated name through gf_free(dyname) to address a related memory issue referenced in the same commit.
Attack Vector
Exploitation requires an attacker to supply a crafted MP4 file to a workflow that invokes MP4Box or links against libgpac. The condition triggers during DASH (Dynamic Adaptive Streaming over HTTP) segmentation when timeline entries are inserted. The resulting process crash impacts transcoding services, batch jobs, and any server-side media conversion pipeline exposed to untrusted uploads.
//append to previous entry if possible
s = gf_list_last(tl->entries);
- if (prev_patch_dur) {
+ if (s && prev_patch_dur) {
u32 nb_ent = gf_list_count(tl->entries);
//split entry
if (s->repeat_count) {
Source: GPAC commit 4860a1a6 — this patch adds the missing NULL check on s before dereferencing it.
Detection Methods for CVE-2025-60489
Indicators of Compromise
- Unexpected termination of MP4Box or any process linking libgpac while processing user-supplied MP4 content.
- Core dumps or segmentation faults originating in dasher_insert_timeline_entry within dasher.c.
- Repeated upload-and-crash patterns from the same client IP against media conversion endpoints.
Detection Strategies
- Monitor process exit codes and crash signals (SIGSEGV) emitted by MP4Box worker processes in media pipelines.
- Correlate inbound MP4 upload events with downstream service failures within short time windows.
- Inspect stack traces from crash reports for frames referencing dasher_insert_timeline_entry or gf_list_last.
Monitoring Recommendations
- Enable systemd or container runtime crash logging for all GPAC worker services.
- Forward application logs and crash telemetry to a centralized SIEM for pattern analysis across hosts.
- Alert on sustained failure rates in DASH segmentation jobs that exceed historical baselines.
How to Mitigate CVE-2025-60489
Immediate Actions Required
- Upgrade GPAC to version 2.5 or later, which contains commit 4860a1a6f128ccc9ae37b4b738d22029f9672457.
- Audit all services and build artifacts that bundle libgpac and rebuild them against a patched release.
- Restrict MP4Box processing to sandboxed containers with resource limits and automatic restart on failure.
Patch Information
The fix is committed to the GPAC repository as 4860a1a6f128ccc9ae37b4b738d22029f9672457, resolving GitHub issues #3323 and #3325. The patch adds a NULL check on the s pointer in dasher_insert_timeline_entry and frees the dyname buffer in isoffin_load.c. See the GitHub Issue #3325 and the GitHub PoC README for reproducer details.
Workarounds
- Reject or quarantine untrusted MP4 uploads until the patched GPAC build is deployed.
- Run MP4Box under a supervisor that isolates crashes and prevents cascading pipeline failures.
- Validate MP4 inputs with a secondary parser to reject malformed timeline structures before invoking the dasher filter.
# Upgrade GPAC from source to the patched release
git clone https://github.com/gpac/gpac.git
cd gpac
git checkout v2.5
./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

