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-55653 Overview
CVE-2025-55653 is a divide-by-zero vulnerability [CWE-369] in GPAC MP4Box v2.4. The flaw resides in the gf_parse_lfrac function implemented in utils/error.c. Processing a crafted MP4 file containing a zero-denominator fraction string triggers a division by zero inside gf_parse_lfrac(). The arithmetic exception terminates the MP4Box process with SIGFPE, producing a local denial-of-service condition.
The issue requires a local attacker to supply a malicious MP4 file and have a user process it with MP4Box. There is no impact to confidentiality or integrity, only availability.
Critical Impact
A crafted MP4 file causes MP4Box to crash via SIGFPE, interrupting media processing workflows and automated pipelines that invoke GPAC.
Affected Products
- GPAC MP4Box v2.4
- GPAC multimedia framework builds that include the vulnerable gf_parse_lfrac routine
- Downstream tooling and automation that invoke MP4Box for MP4 parsing
Discovery Timeline
- 2026-10-16 - CVE-2025-55653 published to the National Vulnerability Database (NVD)
- 2026-10-17 - Advisory distributed via the OpenWall oss-security mailing list
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2025-55653
Vulnerability Analysis
The vulnerability is a classic divide-by-zero defect in GPAC's fraction parsing helper. gf_parse_lfrac converts a string representation of a fraction into a numerator and denominator pair stored in a GF_Fraction64 structure. When the parser encounters a denominator that evaluates to zero, subsequent arithmetic that uses frac->den as a divisor raises a floating point exception.
The GPAC maintainers addressed the defect in commit 4bbb6e5, which also fixed a related integer overflow when building the denominator through repeated multiplication by ten. The patch rejects denominators that would exceed GF_UINT64_MAX / 10 before the next multiplication.
Root Cause
The root cause is missing input validation on the parsed denominator. The function trusts the attacker-controlled string in the MP4 container and does not verify that the computed denominator is non-zero before it is used in division. A secondary defect, an unchecked overflow in the denominator multiplier loop, was fixed in the same commit.
Attack Vector
Exploitation requires an attacker to deliver a crafted MP4 file to a local user who then processes it with MP4Box. The user interaction requirement limits remote exploitation, but automated media processing pipelines that ingest untrusted MP4 content are directly exposed. Successful exploitation terminates the MP4Box process with SIGFPE, denying service to the hosting workflow.
// Patch for src/utils/error.c - commit 4bbb6e5
frac->den = 1;
while (i<len) {
i++;
+ if (frac->den > GF_UINT64_MAX / 10)
+ return GF_FALSE;
frac->den *= 10;
}
//trash trailing zero
// Source: https://github.com/gpac/gpac/commit/4bbb6e5
Detection Methods for CVE-2025-55653
Indicators of Compromise
- MP4Box process terminations with signal SIGFPE (signal 8) recorded in system logs or core dumps
- Core dump files generated by MP4Box referencing gf_parse_lfrac in the stack trace
- Repeated MP4Box crashes correlated with ingestion of specific MP4 samples from untrusted sources
Detection Strategies
- Monitor process exit codes for MP4Box invocations and alert on abnormal termination by SIGFPE
- Scan file ingestion pipelines for MP4 files that cause GPAC to exit non-zero during automated processing
- Enable core dump collection on hosts running GPAC and inspect frames for gf_parse_lfrac in utils/error.c
Monitoring Recommendations
- Centralize MP4Box stderr output and alert on parser error strings tied to fraction parsing
- Track GPAC package versions across hosts and flag any installation still on v2.4 without the 4bbb6e5 fix
- Review workflow logs for repeated retries of the same MP4 asset, a common signature of crash-triggering inputs
How to Mitigate CVE-2025-55653
Immediate Actions Required
- Update GPAC to a build that includes commit 4bbb6e5 or later
- Restrict MP4Box execution to trusted MP4 inputs until the patched build is deployed
- Run MP4Box in a sandboxed or containerized context so a SIGFPE termination does not disrupt the host
Patch Information
The fix is tracked in GPAC commit 4bbb6e5, which adds overflow protection in src/utils/error.c and hardens related output handling in applications/mp4box/filedump.c. The underlying issue is tracked in GPAC issue #3247. Additional context is available in the OpenWall oss-security post and the InfoSec Exchange disclosure.
Workarounds
- Validate or pre-filter MP4 inputs with a secondary parser before invoking MP4Box
- Execute MP4Box under a supervisor that catches SIGFPE and isolates failures from the parent pipeline
- Limit filesystem and network privileges for the user account that runs MP4Box to minimize blast radius
# Build GPAC from source with the fix applied
git clone https://github.com/gpac/gpac.git
cd gpac
git checkout 4bbb6e5
./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

