CVE-2026-135704 in FFmpeginfo

Summary

by MITRE • 11/24/2026

FFmpeg before 9.1 contains an information disclosure vulnerability in the MXG demuxer's mxg_read_packet() that allows attackers to leak uninitialized heap memory through truncated marker segments. Attackers can supply a crafted MXG file ending in a truncated APP13 segment with a large declared length, causing uninitialized heap contents to be emitted as audio packet payload, for example into remuxed output files.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 11/26/2026

The vulnerability identified within FFmpeg versions prior to 9.1 represents a critical information disclosure flaw located specifically within the MXG demuxer module. This security issue arises from improper handling of memory initialization during the parsing process, particularly when processing malformed or crafted input files. The core technical defect resides in the mxg_read_packet function, which is responsible for reading and decoding packets from multimedia containers. When this function encounters specific structural anomalies in an MXG file, it fails to properly initialize heap-allocated buffers before writing data into them. This lack of initialization means that any memory regions not explicitly overwritten by valid application logic retain their previous state, containing residual data from prior allocations or system operations.

The exploitation mechanism relies on the attacker providing a specially crafted MXG container file designed to trigger this uninitialized memory access. Specifically, the malicious input includes an APP13 segment that is truncated but declares a large length value in its header. The demuxer attempts to read and process data based on this declared length without verifying if sufficient valid data exists within the actual file stream. Consequently, when the parser reads beyond the available valid content, it accesses adjacent heap memory regions that have not been cleared or initialized for the current operation. These uninitialized heap contents are then treated as legitimate payload data rather than being discarded or flagged as an error condition.

The operational impact of this vulnerability is significant because the leaked information can be exfiltrated through standard media processing workflows. The uninitialized memory content, which may contain sensitive data such as cryptographic keys, session tokens, private user information, or other confidential details from previous application states, is emitted directly into audio packet payloads. This means that if an attacker supplies a malicious MXG file to a service using FFmpeg for transcoding, remuxing, or playback, the resulting output files will contain fragments of this sensitive heap memory mixed with legitimate media data. For instance, in scenarios where users upload content for conversion and subsequent download, the downloaded files could inadvertently leak private information from other users or system processes that previously utilized similar memory addresses on the server side.

This vulnerability aligns closely with CWE-200, which categorizes exposure of sensitive information to an unauthorized actor, as well as CWE-457 regarding the use of uninitialized variables. From a threat modeling perspective using the MITRE ATT&CK framework, this behavior corresponds to techniques associated with Tactic TA0010 (Discovery) and potentially TA0008 (Lateral Movement) if the leaked data facilitates further access. The attack vector is classified as remote via network interaction when FFmpeg is used in a server-side capacity, such as on-demand transcoding services or media streaming platforms that accept user-uploaded files for processing.

Mitigation strategies primarily involve upgrading to FFmpeg version 9.1 or later, where the developers have addressed this specific memory handling issue within the MXG demuxer logic. For environments unable to upgrade immediately, defensive coding practices should be implemented at the application layer wrapping FFmpeg calls. This includes strict validation of container structures before passing them to the library and implementing timeouts or size limits on packet processing operations. Additionally, deploying runtime protection mechanisms such as Address Sanitizers during development and testing phases can help detect similar uninitialized memory access issues in other parts of the codebase. Organizations relying on FFmpeg for media processing should also consider isolating these processes using containerization or sandboxing to limit the blast radius if a successful exploitation occurs, ensuring that leaked heap data does not compromise critical system resources or shared memory spaces used by other services.

Responsible

VulnCheck

Reservation

11/24/2026

Disclosure

11/24/2026

Moderation

accepted

CPE

ready

EPSS

0.00346

KEV

no

Activities

very low

Sources

Do you want to use VulDB in your project?

Use the official API to access entries easily!