Skip to main content

FFmpeg CVE-2026-135741

| EUVDEUVD-2026-133608 MEDIUM
Out-of-bounds Read (CWE-125)
2026-11-24 VulnCheck GHSA-p526-743r-58j3
5.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft low-depth monoblack BMP/PBM file
  2. Exploit
    Feed as lut2 filter second input
  3. Execution
    Trigger OOB read past lookup table
  4. Impact
    Crash 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

FFmpeg 0 <9.1

Affected Packages

euvd ffmpeg fix: 9.1

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

Vendor (VulnCheck) PRIMARY 5.8 MEDIUM
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
vuln.today AI 5.3 MEDIUM

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.

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H
4.0 AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 5.3 MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.2%
Top 96% exploitable
Prevalence
Ubiquitous
FFmpeg is a near-universal media library embedded across countless applications and pipelines
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

29
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +29
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in Ffmpeg

View all
CVE-2016-1897 MEDIUM POC
5.5 Jan 15

FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol

CVE-2017-9993 HIGH
7.5 Jun 28

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

CVE-2016-1898 MEDIUM POC
5.5 Jan 15

FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco

CVE-2013-4265 CRITICAL POC
10.0 Nov 23

The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re

CVE-2020-12284 CRITICAL POC
9.8 Apr 28

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

CVE-2026-58049 HIGH POC
8.8 Jun 28

Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m

CVE-2026-30754 HIGH POC
8.8 Sep 08

Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap

CVE-2025-25469 HIGH POC
8.8 Feb 18

Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled

CVE-2021-38094 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker

CVE-2021-38093 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke

CVE-2021-38092 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack

CVE-2021-38091 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy