Skip to main content

FFmpeg CVE-2026-125197

| EUVDEUVD-2026-120286 MEDIUM
Integer Underflow (CWE-191)
2026-11-09 disclosure@vulncheck.com GHSA-82jp-g685-6p37
6.9
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Craft AVI/MKV with short (<8 byte) LCL ZLIB packet
  2. Exploit
    Victim opens/transcodes file in FFmpeg with multithread decoding
  3. Execution
    Integer underflow bypasses length clamp in decode_frame()
  4. Impact
    Heap out-of-bounds read crashes decoder

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer underflow checks
Exploitation Conditions

Exploitation requires the decoding application to process a crafted AVI or MKV file containing an LCL (LossLess Codec Library) video stream whose ZLIB packet is shorter than 8 bytes, AND the multithreaded decode path must be active (FLAG_MULTITHREAD). Per UI:P, a victim must passively open, play, or transcode the attacker-supplied file - it is not self-triggering. Limiting factors that reduce real-world risk: the attack vector is local/file-based (AV:L), so the attacker must deliver the file and rely on user interaction; the vulnerable code path is specific to the LCL codec, which is uncommon in modern media; and impact is confined to an application crash (VA:H) with at most a small heap over-read (VC:L), with no write, no integrity impact and no demonstrated code execution.

Impact

This is a moderate-severity, limited-impact memory-safety flaw rather than a top-priority emergency. The supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H) scores 6.9 (Medium) and characterizes the issue as locally-reached, low-complexity, requiring no privileges but requiring passive user interaction, with high availability impact (a crash) and only low confidentiality impact (a bounded heap over-read), no integrity impact and no scope change. CWE-191 (integer underflow) and the fix diff - which adds a 'len < 8' guard in decode_frame() - confirm the mechanism is an underflowed length that bypasses clamping and drives a heap out-of-bounds READ, not a writable overflow, so remote code execution is not indicated by the evidence; the realistic outcome is a decoder/application crash with possible minor memory disclosure. On the exploitation signals: no CISA KEV entry is present, no EPSS score was provided, and no public exploit or PoC reference is supplied (the references are the upstream fix PR/commit, the FFmpeg repo and a VulnCheck advisory, none of which is working exploit code), so there is no evidence of active exploitation or widespread weaponization. The vuln.today Decision label is 'this_month', consistent with a patch-on-normal-cadence issue rather than act_now/emergency. Note the AV:L (local) vector combined with a file-parsing bug: exploitation realistically means delivering a crafted file that a victim opens, and it is further gated by the FLAG_MULTITHREAD multithreaded-decoding path and use of the uncommon LCL codec - verify against your own deployment's decoding configuration.

Exploit ScenarioDerived

An attacker crafts a malicious AVI or MKV container carrying an LCL (LossLess Codec Library) video stream whose ZLIB packet is shorter than 8 bytes and sends it to a victim who plays or transcodes it with an FFmpeg-based application that has multithreaded decoding (FLAG_MULTITHREAD) enabled. The short packet triggers an integer underflow in decode_frame() in lcldec.c, bypassing the length clamp and causing a heap out-of-bounds read that crashes the decoding application (denial of service) and may disclose a small amount of adjacent heap memory. No public exploit was identified at time of analysis; the mechanism is confirmed by the upstream fix commit.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 09, 2026

Heap out-of-bounds read in FFmpeg's LCL (LossLess Codec Library) video decoder in libavcodec/lcldec.c, affecting FFmpeg through 9.0.2, allows an attacker to crash an application that decodes a crafted AVI or MKV file containing an LCL video stream whose ZLIB packet is shorter than 8 bytes while the multithreaded decode path (FLAG_MULTITHREAD) is active. The integer underflow (CWE-191) bypasses the decoder's length clamping, producing an out-of-bounds read of heap memory; impact is confirmed as denial of service (application crash) with at most a small heap over-read, no write and no demonstrated code execution. The attack is file-based and local in vector, requiring the victim to open, play or transcode the supplied file; it is rated this_month priority, no public exploit code was identified at time of analysis, and an upstream fix exists in commit 12e5d4ec98b7add7bcac9d8131d9a6dfb2549966 / PR 25020.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed. Apply commit 12e5d4ec98b7add7bcac9d8131d9a6dfb2549966 (https://github.com/FFmpeg/FFmpeg/commit/12e5d4ec98b7add7bcac9d8131d9a6dfb2549966), which is the change proposed in PR 25020 (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25020) and adds a guard in decode_frame() rejecting ZLIB packets with len < 8 by returning AVERROR_INVALIDDATA, or rebuild against an FFmpeg revision that includes it. Because the flaw requires an attacker-supplied file to be decoded - a crafted AVI or MKV with an LCL stream shorter than 8 bytes on the multithreaded path - reduce exposure by not decoding untrusted media with LCL support enabled where the codec is not needed, and by running decoders on untrusted input in a sandboxed or low-privilege process so a crash cannot escalate; note that the multithreaded decode path is a stated precondition of the trigger, but the supplied sources do not confirm that disabling decoder threading is a complete workaround, so patching remains the authoritative fix.

Affected VersionsENISA

FFmpeg 0 ≤9.0.2

Affected Packages

euvd ffmpeg no fix

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

FFmpeg's lcldec.c implements decoding for the LCL (LossLess Codec Library) lossless video codec, a legacy format that can appear inside AVI and MKV containers. In the affected code path the decoder handles ZLIB-compressed packet data and derives internal buffer offsets and lengths from the packet size; the reported defect is an integer underflow (CWE-191) that occurs when a ZLIB packet is shorter than 8 bytes, which defeats the existing length clamping and lets subsequent indexing read past the end of a heap buffer. The vulnerable path is only reached with FLAG_MULTITHREAD set, i.e. when the decoder is operating in its multithreaded mode. The upstream fix is minimal and confirms the trigger: decode_frame() now rejects packets with len < 8, logging "len %d is too small" and returning AVERROR_INVALIDDATA. The vulnerable code is visible at libavcodec/lcldec.c line 287 in the n9.0.2 tag. Because the flaw is confined to the LCL decoder, only applications that decode LCL-encoded streams are exposed, and the codec is uncommon in modern media workflows - a factor that materially reduces real-world exposure.

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 6.9 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 6.1 MEDIUM

AV:L because a file must be delivered and opened locally; UI:R as the victim must open/play it; PR:N needs no auth; C:L for the bounded heap over-read, I:N, A:H for the crash.

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

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
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 through 9.0.2 contains an integer underflow in decode_frame() in libavcodec/lcldec.c that allows attackers to trigger a heap out-of-bounds read via short ZLIB packets with FLAG_MULTITHREAD. Attackers can supply a crafted AVI or MKV file with an LCL video stream whose packet is shorter than 8 bytes, bypassing length clamping to crash the decoding application.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Ubiquitous
FFmpeg/libavcodec is embedded in countless media applications, servers and pipelines
Data Quality
5 sources
Confidence: Medium

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.1%
Patch available No
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· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
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.

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

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