Skip to main content

FFmpeg EUVDEUVD-2026-120293

| CVE-2026-125204 HIGH
Heap-based Buffer Overflow (CWE-122)
2026-11-09 disclosure@vulncheck.com GHSA-44g2-w5qj-hv47
7.3
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Craft media that increases resolution mid-stream
  2. Delivery
    Operator feeds file to FFmpeg libwebp encoder (cr_threshold set)
  3. Exploit
    Dimension mismatch bypasses stale reference-frame bounds
  4. Execution
    memcpy() writes pixel data past heap buffer
  5. Impact
    Heap corruption crashes application (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

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's libwebp (WebP) encoder to be in use with the cr_threshold option set (conditional replenishment enabled) - a non-default encoding configuration - and the attacker must supply crafted input media whose resolution increases mid-stream so that memcpy() overruns the stale reference frame buffer. Limiting factors: the attack vector is local (the victim/operator must run the vulnerable encode on the malicious input, UI:P), there is an explicit attack requirement (cr_threshold must be configured and the mid-stream resolution increase must occur, reflected in AC:H/AT:P), and the evidenced impact is a crash rather than confirmed code execution. These conditions substantially narrow realistic exploitation to environments that both expose the libwebp encoder to untrusted input and enable conditional replenishment.

Impact

The input CVSS 4.0 base score is 7.3 (High), but the vector itself argues for a tempered real-world priority: AV:L (local - the encoder must process attacker-supplied media on the victim system), AC:H and AT:P (a specific attack requirement must hold - namely that the libwebp encoder is run with cr_threshold set and the input increases resolution mid-stream), PR:N, and UI:P (a user/operator must invoke the encode). No EPSS probability, no CISA KEV listing, and no confirmed proof-of-concept are present in the supplied data, so exploitation status is 'no public exploit identified at time of analysis.' There is a signal conflict worth flagging: the input vector asserts VC:H/VI:H/VA:H (full triad impact), yet the description states only that the overflow causes applications to 'crash' - i.e., the evidenced impact is availability (DoS), while confidentiality/integrity impact at High is not substantiated by the description. The vuln.today decision label is 'this_week' (elevated but not act_now/emergency). Net: this is a genuine memory-corruption bug in a ubiquitously-deployed framework, but the local vector, passive user interaction, and dependence on a non-default encoder option (cr_threshold) make it a moderate, config-conditional risk rather than a mass-exploitable network threat. Note also that the supplied fix commit lives in encode.c (encode_send_frame_internal), tightening a dimension check from '<' to '!=', indicating the root cause is the generic encoder path failing to reject frames whose dimensions differ from the configured resolution.

Exploit ScenarioDerived

An operator runs FFmpeg's libwebp (WebP) encoder with conditional replenishment enabled (cr_threshold set) and feeds it attacker-supplied media. The crafted stream increases its resolution partway through, so ff_libwebp_get_frame() performs a memcpy() that writes pixel data past the stale, smaller reference frame buffer, corrupting the heap and crashing the application. No public exploit identified at time of analysis; exploitation requires local processing of the malicious input and passive operator interaction to launch the encode.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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 buffer overflow in FFmpeg through 9.0.2's libwebp encoder can corrupt memory and crash applications when the non-default cr_threshold option is enabled and crafted media increases resolution mid-stream. The flaw is local and requires the operator to encode attacker-supplied media under that configuration; the evidenced impact is a crash, not confirmed code execution. No public exploit was identified at time of analysis, and the issue is tracked as this_week priority.

RemediationAI

Upstream fix available (PR/commit); a released patched version has not been independently confirmed. Apply the fix referenced by commit 9b99973b2bbecee0b7e1e57035b95498b42f54a6, linked from FFmpeg pull request 25682, or deploy an FFmpeg build that includes that change; release notes should be checked for the first version containing it because the provided data does not name a fixed release. No vendor workaround is documented in the supplied references. Because the described overflow requires the libwebp encoder with cr_threshold set and crafted mid-stream resolution changes, environments that cannot yet update should avoid enabling conditional replenishment when encoding untrusted media and should refrain from running untrusted files through the libwebp encoder; those measures reduce exposure to the stated precondition but are not confirmed as a complete remediation.

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

CVE-2026-125204 is a CWE-122 heap-based buffer overflow in FFmpeg's WebP encoder path, specifically ff_libwebp_get_frame() in libavcodec/libwebpenc_common.c. When conditional replenishment is enabled through the non-default cr_threshold setting, the encoder keeps a reference frame for delta encoding; crafted media that raises resolution mid-stream leaves the reference frame at stale dimensions, so a memcpy() of pixel data can write beyond that buffer. The supplied fix commit 9b99973b2bbecee0b7e1e57035b95498b42f54a6 changes the encode.c size check from less-than comparisons on source width and height to inequality checks, preventing mismatched frame dimensions from reaching this path. The input CVSS 4.0 score is 7.3, while the independent assessment records CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H, emphasizing local access, high complexity, user interaction, and availability impact.

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

Local encoder processing of attacker media (AV:L), requires non-default cr_threshold plus mid-stream resize (AC:H) and operator-run encode (UI:R); evidenced impact is a crash, so A:H with C/I:N.

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

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
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

FFmpeg through 9.0.2 contains a heap buffer overflow in ff_libwebp_get_frame() in libwebpenc_common.c that lets attackers corrupt memory when cr_threshold is set. Attackers can supply crafted media that increases resolution mid-stream, causing memcpy() to write pixel data past the stale reference frame and crash applications.

Executive ViewAI

Why It Matters

A heap buffer overflow in FFmpeg's libwebp encoder (versions through 9.0.2) can crash applications when processing crafted media with the non-default cr_threshold option enabled. While no public exploit exists, media processing pipelines that use this configuration are at risk of disruption. Leadership should care because a crash could halt encoding workflows and impact service availability, though the localized nature and non-default setting lower the overall risk.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include disabling the cr_threshold option, avoiding the libwebp encoder for untrusted media, and adding validation to block mid-stream resolution changes.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Ubiquitous
FFmpeg is embedded in countless media pipelines, apps, and services worldwide
Data Quality
7 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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
Medium
Technical Impact
Total

Priority Score

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

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

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