Skip to main content
Vulnerability Database/CVE-2026-95121

CVE-2026-95121: mp4v2 2.0.0 RCE Vulnerability

CVE-2026-95121 is a remote code execution flaw in mp4v2 2.0.0 that allows attackers to execute arbitrary code through malicious MP4 files. This post explains the technical details, 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-2026-95121 Overview

CVE-2026-95121 is an integer overflow vulnerability in the mp4v2 library version 2.0.0. The flaw resides in MP4RtpAtom::ReadHntiType() within src/atom_rtp.cpp. A specially crafted MP4 file containing an undersized rtp atom triggers an unchecked offset subtraction. The subtraction underflows and produces an allocation size approaching 2^64 bytes. An attacker with local access can leverage this behavior to execute arbitrary code in the context of the parsing process. The weakness is classified under [CWE-190: Integer Overflow or Wraparound].

Critical Impact

Processing a malicious MP4 file through mp4v2 2.0.0 can lead to arbitrary code execution with the privileges of the user running the parser.

Affected Products

  • mp4v2 library version 2.0.0
  • Applications that link against or embed mp4v2 2.0.0 for MP4 parsing
  • Media processing pipelines using the TechSmith mp4v2 fork

Discovery Timeline

  • 2026-10-13 - CVE-2026-95121 published to the National Vulnerability Database (NVD)
  • 2026-10-14 - Last updated in NVD database

Technical Details for CVE-2026-95121

Vulnerability Analysis

The vulnerability exists in the MP4RtpAtom::ReadHntiType() function in src/atom_rtp.cpp. The function processes the Hint Track Information (hnti) child of an rtp atom inside an MP4 container. When parsing the atom, the code computes a size by subtracting a header offset from a declared atom length. The code does not validate that the declared atom length exceeds the required header size.

When the attacker provides a truncated or undersized rtp atom, the subtraction wraps around in unsigned 64-bit arithmetic. The resulting value is near 2^64. The library then uses this value as an allocation size and as a read length against the input buffer. The combination permits heap corruption and attacker-controlled writes outside allocated memory. See the GitHub Issue #98 Discussion and GitHub Pull Request #100 for the maintainer analysis.

Root Cause

The root cause is an unchecked arithmetic operation on untrusted size fields read from the MP4 file. The code assumes the atom length is larger than the fixed header bytes consumed before the subtraction. Attackers violate this assumption by crafting an atom with a length smaller than the header. The resulting integer underflow produces a near-maximum unsigned value that propagates into memory allocation and buffer traversal logic.

Attack Vector

Exploitation requires the victim to parse an attacker-supplied MP4 file with an application that uses mp4v2 2.0.0. The attack vector is local, and successful exploitation grants code execution at the privilege level of the parsing process. Typical delivery paths include email attachments, media uploads to processing services, and media playback tools that invoke the library on untrusted content.

No verified public exploit code is available. The vulnerability mechanism is described in the referenced GitHub Gist for Security.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-95121

Indicators of Compromise

  • MP4 files containing rtp atoms with declared sizes smaller than the standard atom header length
  • Unexpected crashes, SIGSEGV faults, or abort traps in processes that parse media through mp4v2
  • Spikes in virtual memory allocation requests near 2^64 bytes from media parsers
  • Child processes spawned by media conversion or thumbnail generation workers that are inconsistent with normal workflow

Detection Strategies

  • Scan media ingestion pipelines for linked versions of mp4v2 and flag any build matching 2.0.0
  • Deploy file-format validation that rejects MP4 atoms whose declared length is less than their header size
  • Instrument media parsers with AddressSanitizer or similar tooling in test environments to surface heap corruption on sample inputs
  • Correlate media parser crashes with the file hashes that triggered them for retrospective hunting

Monitoring Recommendations

  • Monitor crash telemetry and core dumps from services that handle user-submitted media
  • Alert on unusual allocation failures or out-of-memory conditions in media worker processes
  • Log and retain MP4 inputs that cause parser faults for offline analysis

How to Mitigate CVE-2026-95121

Immediate Actions Required

  • Inventory all applications and container images that bundle mp4v2 and identify version 2.0.0 deployments
  • Restrict mp4v2 parsing to sandboxed, least-privilege processes until a patched build is deployed
  • Block or quarantine untrusted MP4 uploads at the perimeter where feasible
  • Review and apply the fix proposed in GitHub Pull Request #100 Changes

Patch Information

The upstream fix is tracked in GitHub Pull Request #100 in the TechSmith mp4v2 repository. The patch adds a bounds check so the function validates the atom length against the header offset before performing the subtraction. Rebuild and redistribute any applications that statically link mp4v2 after applying the fix.

Workarounds

  • Run media parsing in a seccomp or AppArmor-confined sandbox with minimal filesystem and network access
  • Pre-validate MP4 files with a strict parser that enforces atom-size invariants before passing them to mp4v2
  • Disable RTP hint track processing in applications where the feature is not required
bash
# Example seccomp-restricted invocation using firejail
firejail --noprofile --seccomp --net=none --private-tmp \
  --read-only=/usr --caps.drop=all \
  /usr/bin/mp4-parser /input/untrusted.mp4

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.