Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft media that increases resolution mid-stream
-
DeliveryOperator feeds file to FFmpeg libwebp encoder (cr_threshold set)
-
ExploitDimension mismatch bypasses stale reference-frame bounds
-
Executionmemcpy() writes pixel data past heap buffer
-
ImpactHeap 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
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.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
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
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.
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
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.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
FFmpeg 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-120293
GHSA-44g2-w5qj-hv47
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB