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

CVE-2025-60493: GPAC MP4Box Denial of Service Vulnerability

CVE-2025-60493 is a denial of service vulnerability in GPAC MP4Box caused by a segmentation violation in the check_media_profile function. This vulnerability allows attackers to crash the application using crafted MP4 files.

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

CVE-2025-60493 is a denial-of-service vulnerability in GPAC Project MP4Box versions before 2.5. The flaw resides in the check_media_profile function within applications/mp4box/mp4box.c. Attackers can trigger a segmentation violation by supplying a crafted MP4 file for processing. The root cause is a missing null check on the decoderConfig pointer returned from the elementary stream descriptor, leading to a null pointer dereference when the field is absent.

Critical Impact

A crafted MP4 file processed by MP4Box crashes the application, disrupting media pipelines, transcoding workflows, and automated video processing services that rely on GPAC.

Affected Products

  • GPAC Project MP4Box versions prior to 2.5
  • Applications and services embedding the vulnerable mp4box component
  • Automated media processing pipelines using GPAC for MP4 inspection

Discovery Timeline

  • 2026-10-21 - CVE-2025-60493 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2025-60493

Vulnerability Analysis

The vulnerability is a null pointer dereference inside check_media_profile in applications/mp4box/mp4box.c. MP4Box retrieves an elementary stream descriptor via gf_isom_get_esd and immediately accesses esd->decoderConfig->streamType. When a crafted MP4 omits a valid decoder configuration descriptor, esd->decoderConfig is NULL. Dereferencing it raises SIGSEGV and terminates the process. This produces a reliable denial-of-service condition against any workflow invoking MP4Box on untrusted input.

Root Cause

The code validates that esd is non-null but never validates esd->decoderConfig before dereferencing it. The ISO Base Media File Format permits elementary stream descriptors without a complete decoder configuration, so a well-formed-but-minimal ESD causes the crash.

Attack Vector

An attacker crafts an MP4 file containing a track whose elementary stream descriptor lacks a decoderConfig field. When a victim or automated service processes the file with MP4Box, check_media_profile dereferences the null pointer and the process crashes. Exploitation requires no network authentication; delivery vectors include email attachments, uploaded media in SaaS platforms, and batch transcoding jobs.

c
// Patch from applications/mp4box/mp4box.c - commit 9afeea23
 	u8 PL;
 	GF_ESD *esd = gf_isom_get_esd(file, track, 1);
 	if (!esd) return;
+	if (!esd->decoderConfig) {
+		gf_odf_desc_del((GF_Descriptor *) esd);
+		return;
+	}
 
 	switch (esd->decoderConfig->streamType) {
 	case 0x04:

Source: GPAC commit 9afeea23. The fix adds an explicit null check for decoderConfig and releases the descriptor cleanly before returning.

Detection Methods for CVE-2025-60493

Indicators of Compromise

  • Unexpected mp4box process termination with SIGSEGV in system or container logs
  • Core dumps referencing check_media_profile in mp4box.c
  • MP4 files with elementary stream descriptors missing decoderConfig fields observed in processing queues
  • Repeated crashes of media transcoding workers after ingesting user-supplied content

Detection Strategies

  • Monitor process exit codes and crash telemetry for GPAC binaries across media processing hosts
  • Inspect MP4 inputs with an independent parser to flag ESDs lacking DecoderConfigDescriptor tags
  • Correlate crash events with upstream file ingestion to identify malicious uploads
  • Review the GPAC issue #3328 report and the public PoC repository for sample triggering files

Monitoring Recommendations

  • Alert on repeated crashes of GPAC worker processes within short time windows
  • Collect and retain core dumps from media processing containers for post-incident analysis
  • Track GPAC binary versions across the fleet and flag any instance below 2.5
  • Log hashes of inbound MP4 files to enable retrospective hunting after signatures emerge

How to Mitigate CVE-2025-60493

Immediate Actions Required

  • Upgrade GPAC to version 2.5 or later on every host running MP4Box
  • Rebuild downstream packages, container images, and media pipeline workers against the patched GPAC source
  • Sandbox MP4Box execution so a crash cannot disrupt the parent orchestration service
  • Validate MP4 inputs against size and structural constraints before invoking MP4Box

Patch Information

The fix landed in GPAC commit 9afeea23f5c6584c02aefe1e1560c2844dfb8f7e, which adds the missing esd->decoderConfig null check in check_media_profile. Users should upgrade to GPAC 2.5 or newer. See the upstream commit and issue #3328 for details.

Workarounds

  • Run MP4Box under a supervisor that restarts crashed workers and quarantines the triggering file
  • Restrict MP4Box processing to trusted file sources until the patched version is deployed
  • Apply the upstream patch locally if an immediate upgrade is not feasible
  • Disable automated MP4Box analysis of user-supplied uploads where the feature is non-essential
bash
# Verify installed GPAC version and upgrade
MP4Box -version 2>&1 | head -n 1

# Build the patched release from source
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

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.