Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft low-depth monoblack BMP/PBM file
-
ExploitFeed as lut2 filter second input
-
ExecutionTrigger OOB read past lookup table
-
ImpactCrash app or leak heap into output video
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires FFmpeg to be configured with the lut2 filter AND its output depth ('d'/bit-depth) option explicitly set, plus a second filter input whose pixel format is left unrestricted; the attacker then supplies crafted media such as a monoblack BMP or PBM image as that second input so that indexing runs beyond the lookup tables. Limiting factors: this is not reachable in default transcoding - it needs a specific non-default filtergraph using lut2 with the depth option; the vector is local (AV:L) and requires the application/operator to actually process the attacker-supplied media (UI:P), attack complexity is high (AC:H) and a specific attack requirement must hold (AT:P). These constraints, not raw severity, make realistic exposure narrow. |
| Impact | Signals point to a moderate, not urgent, priority. The supplied CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P, score 5.8) stacks several constraining conditions: local attack vector, high attack complexity, a present attack requirement, and passive user interaction, all of which depress real-world exploitability. Impact is split - only low confidentiality (VC:L, partial heap leak into output) but high availability (VA:H, application crash), with no integrity impact. No EPSS score and no CISA KEV entry are provided, and the references are a patch commit, a FFmpeg pull request, and a VulnCheck advisory - none of which is confirmed working exploit code, so this is best treated as no public exploit identified at time of analysis. The vuln.today decision label is this_month (not act_now or emergency), consistent with patch-on-normal-cycle urgency. Note one tension worth verifying: the vector asserts AV:L, yet FFmpeg routinely ingests remote/attacker-supplied media, so the practical reach could be broader than 'local' implies if the lut2 filtergraph processes network-sourced input - verify against your deployment. The catch is that the dangerous path requires a non-default lut2 configuration, which sharply narrows the exposed population despite FFmpeg's huge footprint. |
| Exploit ScenarioDerived | An attacker crafts a low-depth image such as a monoblack BMP or PBM and gets it processed as the second input of an FFmpeg pipeline that uses the lut2 filter with the output depth option set. Because the second input's pixel format is unrestricted, the mismatched depth causes indexing beyond the lookup tables, triggering a heap out-of-bounds read that either crashes the application or embeds leaked heap memory into the output video. No confirmed working public exploit exists; a patch commit and a VulnCheck advisory are published, and the high complexity (AC:H/AT:P) plus required local processing (AV:L/UI:P) of the crafted media limit practical weaponization. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 24, 2026
Heap-based out-of-bounds reads in FFmpeg's libavfilter lut2 filter (all versions before 9.1) can crash a transcoding process or leak heap memory into the produced video when a crafted image is fed as the filter's second input. Reachability is narrow: the application must build a non-default filtergraph that uses lut2 with the output depth ('d') option explicitly set while leaving the second input's pixel format unrestricted, and the operator must then process attacker-supplied media such as a monoblack BMP or PBM file. No public exploit code was identified at time of analysis and there is no KEV listing; scoring is CVSS 5.8 with a local vector, high attack complexity and a specific precondition, so the issue is a moderate, this-month priority rather than an emergency.
RemediationAI
Vendor-released patch: upgrade to FFmpeg 9.1 or later, which incorporates commit 6b11ad5b5724806dbee653482088af4bf4dce97b (PR 26121) that constrains the pixel-format list on both lut2 input pads; rebuilding against that commit or any post-9.1 snapshot clears the flaw, while distributions shipping the n9.0.x branch should backport the two-line loop change. Where an immediate rebuild is not possible, the exposure can be removed at the graph level: drop lut2 with the 'd'/output-depth option from any filtergraph that handles untrusted media, or, if lut2 must stay, force an explicit matching pixel format on the second input (for example with a format filter) so the two inputs cannot diverge in bit depth - the trade-off is that forcing the format may alter output colour characteristics or cause the graph to reject inputs it previously accepted, and removing lut2 entirely loses the dual-input LUT functionality. Because the vector is local and requires the operator to process the crafted file, additionally running untrusted-media transcoding under a sandbox or least-privilege account limits the heap-disclosure and crash consequences, at the cost of extra deployment complexity. Vendor references: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26121 and https://www.vulncheck.com/advisories/ffmpeg-before-9.1-heap-out-of-bounds-read-via-lut2-filter.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The lut2 filter in libavfilter/vf_lut2.c applies lookup-table transforms across two video inputs. Its query_formats() callback built a single shared pixel-format list and attached it only to the first input pad, leaving the second input's format unrestricted; when the filter is initialised with the output depth option set, the code indexes lookup tables sized for one bit depth/format using samples taken from the second input, so a second input at a different or unexpected pixel format pushes the index past the end of the table. That is a classic CWE-125 out-of-bounds read: the fault is a missing format negotiation constraint rather than a bounds check inside the sample loop. The upstream fix (commit 6b11ad5b5724806dbee653482088af4bf4dce97b, PR 26121) simply wraps the ff_formats_ref/ff_make_pixel_format_list call in a loop over both input pads so the second input is constrained to the same accepted format set as the first. The CVSS:4.0 vector reflects this narrow trigger - AV:L, AC:H, AT:P, UI:P - with high availability impact (process crash) and only low confidentiality impact from the partial heap disclosure. CPE cpe:2.3:a:ffmpeg:ffmpeg with a wildcard version range covers every release prior to 9.1, including the n9.0.x branch where the vulnerable line is visible at vf_lut2.c#L185.
Know when Ffmpeg gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
Needs a non-default lut2 filtergraph with the depth option and an unrestricted second input (AC:H) and processing of crafted local media (AV:L/UI:R); heap leak is C:L, crash is A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Related Vulnerabilities in FFmpeg Memory Corruption and NULL Dereference Flaws
View all 34FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol
FFmpeg before 2.8.12, 3.0.x and 3.1.x before 3.1.9, 3.2.x before 3.2.6, and 3.3.x before 3.3.2 does not properly restric
FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco
The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re
cbs_jpeg_split_fragment in libavcodec/cbs_jpeg.c in FFmpeg 4.1 and 4.2.2 has a heap-based buffer overflow during JPEG_MA
Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m
Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap
Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled
Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker
Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke
Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
EUVD-2026-133608
GHSA-p526-743r-58j3
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB