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

CVE-2025-71438: GPAC MP4Box AC4 File DoS Vulnerability

CVE-2025-71438 is a denial of service vulnerability in GPAC MP4Box caused by an out-of-bounds read when processing crafted 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-71438 Overview

CVE-2025-71438 is an out-of-bounds read vulnerability in the GPAC multimedia framework, specifically in the gf_odf_ac4_cfg_dsi_v1 function located in /odf/descriptors.c. The flaw affects GPAC Project MP4Box versions prior to v26.07.0. Attackers can trigger the vulnerability by supplying a crafted AC4 audio file, causing the application to read memory outside allocated bounds and crash. The result is a Denial of Service (DoS) condition against any process consuming untrusted AC4 content with MP4Box.

Critical Impact

Processing an attacker-controlled AC4 file with a vulnerable MP4Box build causes an out-of-bounds read that terminates the process, disrupting media conversion and streaming pipelines.

Affected Products

  • GPAC Project MP4Box prior to v26.07.0
  • GPAC multimedia framework builds that compile /odf/descriptors.c with AC4 descriptor parsing
  • Downstream tooling and services that embed GPAC libraries for AC4 handling

Discovery Timeline

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

Technical Details for CVE-2025-71438

Vulnerability Analysis

The vulnerability resides in gf_odf_ac4_cfg_dsi_v1, the routine that parses the Decoder Specific Information (DSI) for AC4 audio streams inside the GPAC ODF (Object Descriptor Framework) descriptor layer. When processing a malformed AC4 configuration record, the parser advances the read cursor beyond the end of the input buffer. The function does not validate remaining buffer length against the fields it decodes from the bitstream.

The read occurs during container parsing, so any workflow that passes a crafted file to MP4Box is affected. Public references include a GitHub Issue Discussion and a GitHub PoC Repository demonstrating the crash.

Root Cause

The root cause is missing bounds validation inside the AC4 DSI parser. Associated hardening in the fix also addresses null-string dereference paths in related filter code, where properties and sample buffers were used without first verifying the pointer or length.

Attack Vector

Exploitation requires an attacker to deliver a crafted AC4 file to a system that processes it with MP4Box or an application linked against vulnerable GPAC libraries. No authentication is required when the parser is reachable through user-submitted content, media pipelines, or automated transcoding services.

c
// Patch excerpt: src/filter_core/filter_pid.c
// Adds a null check on prop_val->value.string before strncmp
                prop_val = gf_filter_pid_get_property_first(pid, GF_PROP_PID_FILEALIAS);
                if (!prop_val) prop_val = gf_filter_pid_get_property_first(pid, GF_PROP_PID_FILEPATH);
                //if filepath is a gmem:// wrapped, don't use it !
-               if (prop_val && !strncmp(prop_val->value.string, "gmem://", 7))
+               if (prop_val && prop_val->value.string && !strncmp(prop_val->value.string, "gmem://", 7))
                    prop_val = NULL;

                if (!prop_val)
// Source: https://github.com/gpac/gpac/commit/13eb5b76560aaf7813b865a2ad433258478e2695
c
// Patch excerpt: src/filters/load_text.c
// Adds text buffer and length validation before packet allocation
        ctx->seek_state = 0;
    }

-   if (!ctx->pid_framed && (ctx->stxtmod <=STXT_MODE_SBTT)) {
+   if (!ctx->pid_framed && (ctx->stxtmod <=STXT_MODE_SBTT) && txt_samp->text && txt_samp->len) {
        dst_pck = gf_filter_pck_new_alloc(ctx->opid, txt_samp->len, &pck_data);
        if (!dst_pck) return;
        memcpy(pck_data, txt_samp->text, txt_samp->len);
// Source: https://github.com/gpac/gpac/commit/13eb5b76560aaf7813b865a2ad433258478e2695

Detection Methods for CVE-2025-71438

Indicators of Compromise

  • Unexpected MP4Box process crashes or SIGSEGV terminations during AC4 file ingestion
  • AC4 (.ac4) or ISOBMFF containers with malformed DSI fields submitted to transcoding workflows
  • Core dumps or AddressSanitizer reports referencing gf_odf_ac4_cfg_dsi_v1 in odf/descriptors.c

Detection Strategies

  • Inventory hosts, containers, and CI runners that ship GPAC or MP4Box binaries prior to v26.07.0
  • Instrument media pipelines with ASan or similar runtime checkers in test environments to catch out-of-bounds reads
  • Alert on repeated non-zero exit codes from MP4Box processes handling user-supplied media

Monitoring Recommendations

  • Monitor process telemetry for abnormal termination of GPAC-based workers and track parent processes submitting the input
  • Capture file hashes of AC4 inputs that trigger crashes and share them with threat intelligence stores
  • Correlate crash events with upstream file submission sources to identify abusive clients

How to Mitigate CVE-2025-71438

Immediate Actions Required

  • Upgrade GPAC MP4Box to v26.07.0 or later across all production and build systems
  • Quarantine untrusted AC4 and MP4 inputs until vulnerable binaries are replaced
  • Rebuild and redeploy container images that bundle GPAC libraries after patching

Patch Information

The fix is included in GPAC commit 13eb5b7, which adds bounds and null checks across AC4 parsing and related filter code paths. Users must update to GPAC MP4Boxv26.07.0 or later. Additional context is available in the GitHub Issue Discussion.

Workarounds

  • Disable or block AC4 handling in media ingestion workflows until the upgrade is applied
  • Run MP4Box inside sandboxed, resource-limited containers to contain crashes and prevent service impact
  • Pre-validate media files with an independent parser before invoking vulnerable GPAC versions
bash
# Verify installed MP4Box version and upgrade from source
MP4Box -version

git clone https://github.com/gpac/gpac.git
cd gpac
git checkout v26.07.0
./configure && make -j"$(nproc)" && sudo make install

# Confirm the patched build is in use
which MP4Box && 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.