CVE-2026-135741 in FFmpeginfo

Summary

by MITRE • 11/24/2026

FFmpeg before 9.1 contains a heap out-of-bounds read vulnerability in libavfilter/vf_lut2.c because the second input's pixel format is unrestricted when the output depth option is set. Attackers can supply crafted media such as monoblack BMP or PBM images to index beyond lookup tables, crashing applications or leaking heap contents into output video.

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

Analysis

by VulDB Data Team • 11/27/2026

The vulnerability identified in FFmpeg versions prior to 9.1 represents a critical memory safety issue located within the libavfilter component, specifically affecting the lut2 video filter implementation found in vf_lut2.c. This flaw stems from an insufficient validation of input parameters during the processing pipeline, where the pixel format of the second input stream is not adequately restricted or validated against expected bounds when specific output depth options are configured. In a typical FFmpeg operation involving complex filtering chains, multiple inputs may be processed simultaneously to apply transformations such as color space conversions, overlays, or mathematical operations on pixel data. The lut2 filter performs look-up table operations based on input channels and specified depths. When the second input's pixel format is left unrestricted in this context, the internal logic fails to ensure that memory access patterns remain within allocated boundaries for all possible valid and invalid formats.

From a technical perspective, this lack of boundary checking allows an attacker who controls the media file or stream being processed to trigger a heap out-of-bounds read condition. By supplying specially crafted input files, such as monoblack BMP images or PBM (Portable Bitmap) files with specific header configurations that exploit the parsing logic, an adversary can manipulate how the filter calculates memory offsets for lookup tables. The vulnerability arises because the code assumes certain properties about the second input's data structure based on default behaviors rather than enforcing strict type checking relative to the output depth setting. Consequently, when the processing engine attempts to read pixel values or index into internal arrays using these malformed inputs, it accesses memory locations beyond the allocated heap segment associated with that specific filter instance.

The operational impact of this vulnerability is significant and multifaceted. Primarily, the out-of-bounds read can lead to application crashes due to segmentation faults when the operating system detects an illegal memory access attempt. This results in a denial of service against any service or application relying on FFmpeg for media processing, such as video streaming platforms, content management systems, or automated transcoding pipelines. Beyond availability issues, the vulnerability poses severe confidentiality risks. Because the read operation accesses arbitrary heap memory, it can result in information leakage where sensitive data residing adjacent to the allocated buffer is written into the output video stream. This side-channel effect allows attackers to exfiltrate potentially confidential information from the server's memory space through the processed media files, compromising the integrity and security of the underlying system infrastructure.

This vulnerability aligns with CWE-125, which describes out-of-bounds read vulnerabilities where software reads data past the end or before the beginning of the intended buffer. It also relates to CWE-20 regarding improper input validation, as the root cause is the failure to restrict and validate the pixel format attribute of secondary inputs in a multi-input filter context. In terms of offensive security frameworks, this exploit scenario maps to MITRE ATT&CK techniques involving resource manipulation for denial of service and potentially data exfiltration through crafted media files if the output stream is accessible or logged by downstream systems.

To mitigate this risk, organizations utilizing FFmpeg must immediately upgrade to version 9.1 or later, where the developers have implemented stricter validation checks for input pixel formats within the lut2 filter logic. Until an upgrade can be performed, defensive measures should include implementing strict allow-lists for supported media types and file extensions at the network perimeter or application layer to prevent ingestion of potentially malicious files. Additionally, running FFmpeg processes in sandboxed environments with restricted memory access permissions can limit the impact of successful exploitation attempts by containing potential heap corruption within isolated containers rather than affecting the host system's broader memory space. Regular security audits of media processing pipelines and integration of fuzzing tools targeting video filters are recommended to detect similar edge-case vulnerabilities before they reach production environments.

Responsible

VulnCheck

Reservation

11/24/2026

Disclosure

11/24/2026

Moderation

accepted

CPE

ready

EPSS

0.00429

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!