Overview
CVE-2026-140121 is a NULL pointer dereference in the GPAC multimedia framework that can be triggered by importing a specially crafted MP4 file. The flaw lies in the mp4_mux_cenc_update() function within src/filters/mux_isom.c. When MP4 metadata declares Common Encryption signaling without properly initializing the cenc_ki member, the importer dereferences a NULL pointer and the process terminates. The result is a denial-of-service condition with no documented path to code execution, memory corruption, privilege escalation, or data disclosure.
Affected systems
- Product: GPAC (Gpac gpac), through version 26.07.0 as described in the published advisory.
- Components: MP4Box and any deployment that uses the GPAC filter graph to import MP4 content.
- Typical environments: automated media ingestion pipelines, transcoding farms, content-moderation or DRM-prep services, and other systems that call MP4Box on externally supplied MP4 files.
- Weakness class: CWE-476 NULL Pointer Dereference.
The cvefeed.io record explicitly labels the CVE as not remotely exploitable. That designation reflects the CVSS attack vector rather than immunity for remote ingestion services: a remotely uploaded file can still trigger the crash when an internal worker forwards it to MP4Box.
Vulnerability mechanics
The trigger path is contained within the import side of the MP4 muxer handling. A constructed MP4 file declares Common Encryption signaling that the importer accepts into the encryption context, but the cenc_ki member of that context is left unset. When mp4_mux_cenc_update() later uses the missing reference, the NULL dereference occurs and the process aborts. The supplied sources confirm that the function and file path involved are mp4_mux_cenc_update() in src/filters/mux_isom.c, with line references available in the upstream repository.
Scoring and exposure
- CVSS 3.1: 5.5 MEDIUM, vector AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H, exploitability 1.8, impact 3.6.
- CVSS 4.0: 6.8 MEDIUM (as reported by one scoring source).
- Confidentiality, integrity: none reported.
- Availability: high, because the crashing process is MP4Box itself.
The published evidence does not list GPAC on the CISA KEV catalog and does not name any threat actor or active campaign. A proof-of-concept MP4 file is publicly referenced at the sigdevel/pocs repository.
Mitigation
- Update GPAC to a build that incorporates upstream commit
6c0f0718e62832c6df3207f8ecdf465dd62ae69f. The advisory text states that GPAC 26.07.0 or later resolves the issue, and operators should verify both the version label and the actual commit present in their distribution rather than relying on the version string alone.
- Until patched, avoid processing untrusted or externally supplied MP4 files with affected MP4Box or GPAC deployments. For automated pipelines, place a quarantine and validation stage in front of GPAC so malformed files never reach the importer.
- Where operationally feasible, validate Common Encryption signaling before import and reject files that contain malformed or incomplete encryption metadata. This is a compensating control, not a substitute for patching.
- Isolate media-import jobs from shared, long-running services, supervise the process, and apply automatic restart policies so a crash does not bring down an entire ingestion cluster.
- For detection, monitor MP4Box and GPAC processes for abnormal termination, segmentation faults, or rapid restart loops during MP4 import. Preserve crash artifacts and the triggering file for later analysis. The public PoC filename can serve as an initial search term, with the caveat that filename-based detection alone is not dependable.
References and supporting material
Upstream issue gpac/gpac#4072 traces the public disclosure, and the fix commit is publicly visible in the GPAC repository. The vulnerable source line and the PoC asset are linked from the cvefeed.io advisory and the VulnCheck record.
References
- cvefeed.io/vuln/detail/CVE-2026-140121
- vulners.com/cvelist/CVELIST:CVE-2026-140121?ut…m_campaign=rss
- vulners.com/cve/CVE-2026-140121?utm_source=rss…m_campaign=rss
- github.com/gpac/gpac
- github.com/gpac/gpac/blob/v26.07.0/src/filters/mux_isom.c
- github.com/gpac/gpac/commit/6c0f0718e62832c6df…df465dd62ae69f
- github.com/gpac/gpac/issues/4072
- github.com/sigdevel/pocs/blob/main/res/gpac/MP…som_c_4871.mp4
- vulncheck.com/advisories/gpac-through-26.07.0-…ux-cenc-update