CVE-2026-135741: FFmpeg before 9.1 Heap Out-of-Bounds Read via lut2 Filter
FFmpeg before 9.1 contains a heap out-of-bounds read vulnerability in libavfilter/vflut2.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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
FFmpegto a version that resolves this vulnerability.Fixed in 9.1
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Applications using FFmpeg versions before 9.1 are affected when they process attacker-controlled media through the lut2 filter with the output depth option set. The issue is locally exploitable and requires user interaction, such as processing a crafted media file.
What does an attacker need to provide to trigger the flaw?
An attacker needs to supply crafted media that becomes the second input to the lut2 filter. Monoblack BMP or PBM images are cited as examples that can cause lookup-table indexes to go out of bounds when the output depth option is set.
What is the likely impact if exploitation succeeds?
The out-of-bounds read can crash the application, causing a denial of service. It may also leak heap contents into generated output video, exposing limited confidential data.
How can I determine whether my workflow is affected?
Check whether the FFmpeg version is earlier than 9.1 and whether any media-processing pipeline uses the lut2 filter with its output depth option set. Workflows that accept untrusted files as the second lut2 input warrant particular review.
What can be done before upgrading?
Avoid processing untrusted media as the second input to lut2 when the output depth option is set. Where that cannot be avoided, restrict accepted input formats and isolate the media-processing process to limit the impact of crashes or output-data disclosure.