Skip to main content

FFmpeg EUVDEUVD-2026-120209

| CVE-2026-125259 HIGH
Integer Overflow or Wraparound (CWE-190)
2026-11-09 VulnCheck GHSA-pr5x-4ggj-w5wj
8.5
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Submit crafted high-resolution video file
  2. Delivery
    Operator transcodes it with prores_ks encoder
  3. Exploit
    32-bit arithmetic overflows frame_size_upper_bound
  4. Execution
    encode_frame writes slices past undersized packet buffer
  5. Impact
    Heap corruption, potential code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
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 that the target system ENCODES attacker-supplied content TO ProRes using FFmpeg's prores_ks encoder (e.g. a transcoding service or editing pipeline), with frame dimensions large enough that the 32-bit calculation of frame_size_upper_bound in ff_prores_kostya_encode_init() overflows. This is NOT a decode-side bug, so merely opening or playing the file is insufficient. Limiting factors per the CVSS 4.0 vector: local attack vector (AV:L) means no direct network trigger, passive user/operator interaction is required (UI:P) to run the encode, the specific non-default prores_ks encoder must be selected, and very large frame resolutions are needed. These conditions make opportunistic mass exploitation unlikely and confine risk to systems that intentionally re-encode untrusted video into ProRes.

Impact

The CVSS 4.0 base score of 8.5 (High) is driven by full VC:H/VI:H/VA:H impact from heap corruption, but the vector itself tempers real-world urgency: AV:L means this is NOT remotely reachable on its own, and UI:P means an operator must actively run an encode. Critically, this is an ENCODER flaw (prores_ks), not a decoder flaw, so it is only reachable in workflows that deliberately transcode attacker-supplied input TO ProRes - a far narrower surface than typical FFmpeg decode-side bugs. No EPSS score was provided, so exploitation probability cannot be quantified; the vulnerability is NOT in CISA KEV and there is no confirmed working exploit code (the references are only the patch commit, the PR, the source line, and the VulnCheck advisory). The vuln.today decision label is 'this_week' rather than act_now/emergency, consistent with a serious-but-not-actively-exploited issue. Net: a real priority for media-processing pipelines that re-encode untrusted uploads to ProRes, but a lower-tier concern for the vast majority of FFmpeg deployments that never invoke the prores_ks encoder. The high CVSS reflects impact severity, not ease or breadth of real-world exploitation.

Exploit ScenarioDerived

A server-side media pipeline (or desktop user) transcodes an attacker-supplied video to ProRes using FFmpeg's prores_ks encoder. By crafting a very high-resolution input, the attacker triggers a 32-bit integer overflow in ff_prores_kostya_encode_init() that undersizes the packet buffer, so encode_frame() writes slice data past the allocation and corrupts the heap. No confirmed public exploit code exists at time of analysis; a vendor patch commit is available.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 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

An integer overflow in FFmpeg's ProRes Kostya encoder (prores_ks) through 9.0.2 causes ff_prores_kostya_encode_init() to compute frame_size_upper_bound with 32-bit arithmetic, so sufficiently large frame dimensions wrap the value and produce an undersized packet buffer; encode_frame() then writes slice data past the end of that buffer and corrupts heap memory. The flaw is encode-side only: a target is affected when it transcodes attacker-supplied video TO ProRes with the non-default prores_ks encoder at very large resolutions, which is why the CVSS 4.0 vector is AV:L/UI:P rather than a remotely reachable decode bug. Score 8.5 High reflects full confidentiality, integrity and availability impact from heap corruption; no public exploit code or CISA KEV entry was identified at time of analysis, and vendor priority is this_week.

RemediationAI

The vendor fix is available as upstream commit 439b452f9fe916a9f7d8788ab6afee8fac846b0b (merged via PR 25573, https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25573); it converts the frame_size_upper_bound accumulation to int64_t, stores the per-slice bound in ProresContext, and aborts initialization with 'Frame too large to encode' when the combined bound would exceed INT_MAX. Upstream fix available (PR/commit); released patched version not independently confirmed, so build from or backport that commit rather than assuming a tagged release contains it, and verify the int64_t accumulation and the INT_MAX guard are present in libavcodec/proresenc_kostya_common.c of whatever build you deploy. Until patched, the practical compensating control mirrors the fix's own bound check: reject or refuse to transcode inputs whose frame dimensions would drive the 32-bit bound past INT_MAX (i.e. cap resolution and slice counts before invoking prores_ks), and restrict prores_ks encoding to trusted or pre-validated content since the flaw only manifests when an attacker controls the input video being re-encoded. Both controls have operational side effects - capping dimensions breaks legitimate high-resolution ProRes workflows, and trusting only vetted inputs reduces throughput and blocks user-supplied uploads on transcoding services - so schedule the code fix rather than relying on them long term.

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 prores_ks encoder (libavcodec/proresenc_kostya.c and proresenc_kostya_common.c) pre-computes an upper bound on the encoded frame size during AVCodecContext initialization so that encode_frame() can allocate a packet buffer large enough for all slices. In the affected code, ff_prores_kostya_encode_init() accumulated that bound - pictures_per_frame multiplied by slices_per_picture, plus per-slice bit budgets scaled by mbs_per_slice * 256 * (1 + alpha_bits + 1) and the 512-versus-768 bit estimate selected by chroma_factor == CFACTOR_Y444 - entirely in 32-bit int arithmetic. That is a classic CWE-190 integer overflow: with large enough frame dimensions and slice/picture counts, the multiplication and addition wrap, the stored frame_size_upper_bound becomes smaller than the real worst case, and encode_frame() subsequently writes slice payloads beyond the end of the allocated packet buffer, corrupting heap memory. The upstream fix in commit 439b452f9fe916a9f7d8788ab6afee8fac846b0b (PR 25573) moves the accumulation to int64_t, caches the per-slice upper bound in the ProresContext as slice_size_upper_bound, and rejects configurations where frame_size_upper_bound + slice_size_upper_bound + FF_INPUT_BUFFER_MIN_SIZE exceeds INT_MAX with the error 'Frame too large to encode' (AVERROR(EINVAL)). The trigger path is the encode path only - decoding or playing a file does not exercise this code.

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

Encoder-path bug reachable only when an operator transcodes attacker input locally (AV:L, UI:R, PR:N); heap corruption yields high C/I/A, scope unchanged.

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

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
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 an integer overflow vulnerability in ff_prores_kostya_encode_init() that miscalculates frame_size_upper_bound using 32-bit arithmetic for large frame dimensions. Attackers can supply a high-resolution video transcoded with the prores_ks encoder, causing encode_frame() to write slices past an undersized packet buffer and corrupt heap memory.

Executive ViewAI

Why It Matters

A high-severity integer overflow vulnerability in FFmpeg's ProRes Kostya encoder (prores_ks) could cause heap corruption when attackers supply malicious video files that are transcoded to ProRes at extremely large resolutions. Organizations that run video processing pipelines using this encoder are at risk; successful exploitation could lead to data leakage, system instability, or arbitrary code execution, requiring immediate remediation to protect media assets and infrastructure.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Ubiquitous
FFmpeg is a core multimedia library embedded across countless apps and services
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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
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· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

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

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