Skip to main content

FFmpeg CVE-2026-125260

| EUVDEUVD-2026-120210 HIGH
Heap-based Buffer Overflow (CWE-122)
2026-11-09 VulnCheck GHSA-v7mh-fwjx-mgh7
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 with mid-stream resolution increase
  2. Exploit
    Operator transcodes input to OpenEXR RLE
  3. Execution
    encode_scanline_rle() writes pointers past scanline array
  4. Impact
    Heap corruption crashes FFmpeg (denial of service)

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 that FFmpeg be used to ENCODE/transcode attacker-influenced input to the OpenEXR format with RLE compression specifically - the bug is in the EXR encoder's RLE scanline path (encode_scanline_rle()), not in decoding. The triggering condition is concrete: the source frame's resolution must GROW mid-stream so that a frame is taller than the encoder height configured at initialization (src->height != avctx->height), which the pre-patch code failed to reject. Limiting factors that reduce real-world risk: the attack vector is local file/stream processing (AV:L), an operator or automated workflow must actually run an EXR+RLE transcode of the malicious input (UI:P passive interaction), and the specific mid-stream resolution-growth condition must be met (AT:P). It does not affect FFmpeg deployments that never encode to OpenEXR RLE.

Impact

The input CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P) describes a local, high-complexity issue that additionally carries an attack requirement (AT:P) and passive user interaction (UI:P) - meaning exploitation is not a simple remote drive-by but depends on an operator transcoding attacker-supplied media. Although PR:N indicates no privileges are needed by the attacker (they only supply a crafted file), the local attack vector and the AT:P/UI:P conditions substantially constrain real-world exploitability. The vuln.today priority is 'this_week' (not act_now/emergency), there is no CISA KEV listing and no EPSS score was provided, and no public exploit code is referenced, so this is a genuine but non-urgent fix-on-schedule issue rather than a mass-exploitation emergency. Note a tension in the signals: the supplied CVSS 4.0 vector rates VC:H/VI:H/VA:H (full confidentiality/integrity/availability impact), yet the description only demonstrates heap corruption that writes pointers past the scanline array and crashes the application - i.e. the proven impact is denial of service, with code execution being a theoretical heap-overflow possibility that the sources do not confirm. The high rated confidentiality/integrity impacts are therefore not substantiated by the available evidence and should be verified against the VulnCheck advisory.

Exploit ScenarioDerived

An attacker crafts a media file whose frame resolution grows partway through the stream and submits it to a service or workflow that transcodes user-supplied video to OpenEXR with RLE compression. When FFmpeg's encode_scanline_rle() processes a frame taller than the encoder height, it writes pointers past the scanline array, corrupting the heap and crashing the FFmpeg process. No public exploit code is identified at time of analysis; the referenced VulnCheck page is an advisory, not verified working exploit code.

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

Encoding attacker-influenced media to OpenEXR with RLE compression in FFmpeg through 9.0.2 can corrupt heap memory when a source frame's resolution grows mid-stream and a frame ends up taller than the encoder height fixed at initialization, causing encode_scanline_rle() to write past the scanline array. Exploitation is local and conditional: FFmpeg must actually be used to transcode to EXR+RLE, an operator must feed or play the crafted input (passive interaction), and the mid-stream resolution-growth condition must be met. The assessed impact is primarily availability (crash) with a limited integrity effect and no confidentiality loss; no public exploit code has been identified at time of analysis and the issue is not in CISA KEV, though the patch is available upstream and should land in this week's cycle.

RemediationAI

Apply the vendor-released upstream fix commit 9b99973b2bbecee0b7e1e57035b95498b42f54a6 (upstream PR 25682), which tightens the frame-size check in libavcodec/encode.c to reject any frame whose width or height differs from the encoder context, and rebuild or update to a build containing it; a specifically tagged release version carrying the fix is not independently confirmed in the available data, so verify the commit is present in whatever package you deploy. Prioritize this within the current week in line with the this_week priority signal, especially on any system that transcodes untrusted media. Where rebuilding is not immediately possible, reduce exposure by ensuring untrusted input is not transcoded to OpenEXR with RLE compression enabled, which removes the vulnerable scanline path at the cost of losing that output format/compression option for such workflows, and by constraining transcode pipelines to fixed-resolution, single-dimension input so mid-stream resolution growth cannot reach the encoder - each of these narrows functionality and is only a stopgap. Running transcodes of untrusted media in a sandboxed, resource-limited process contains the consequence of the memory corruption (crash or limited integrity impact) but does not fix the underlying write. Vendor and advisory references: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25682, https://github.com/FFmpeg/FFmpeg/commit/9b99973b2bbecee0b7e1e57035b95498b42f54a6, https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-buffer-overflow-in-exr-encoder-rle-path.

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

The flaw lives in FFmpeg's OpenEXR encoder, libavcodec/exrenc.c, specifically in the RLE scanline path encode_scanline_rle() (referenced at line 226 of the n9.0.2 tree). It is a CWE-122 heap-based buffer overflow: because the encoder sizes its scanline/pointer array to avctx->height at initialization, a frame that arrives later with a larger height causes out-of-bounds pointer writes on the heap. The root cause is compounded by a validation defect in libavcodec/encode.c: encode_send_frame_internal() only rejected frames larger than the initialized dimensions using a strict '<' comparison, so any frame whose width or height differed from avctx->width/avctx->height was not consistently rejected. The upstream fix changes that guard to reject any mismatch (src->width != avctx->width || src->height != avctx->height), closing the window in which a growing stream can deliver an oversized frame to the encoder. Only the encode/transcode direction is affected - decoding OpenEXR is not the vector - and only the RLE-compression code path within the EXR encoder handles the scanline data in the vulnerable way. Note the assessed severity uses a different vector family (CVSS 3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H) than the published 7.3 CVSS 4.0 vector, but both agree on a local, high-complexity, attack-requirement-constrained issue with high availability impact and no confidentiality 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 5.3 MEDIUM

Local crafted-input processing during an EXR/RLE transcode (AV:L, UI:R) with a specific mid-stream resolution condition (AC:H); demonstrated impact is a heap-corruption crash (A:H) with limited integrity from the out-of-bounds write and no confidentiality disclosure shown.

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H
4.0 AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
Red Hat 7.0 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
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 vulnerability in libavcodec/exrenc.c that allows attackers to corrupt heap memory when encode_scanline_rle() processes frames taller than the encoder height. Attackers can supply crafted input whose resolution grows mid-stream, transcoded to OpenEXR with RLE compression, to write pointers past the scanline array and crash the application.

Executive ViewAI

Why It Matters

FFmpeg through 9.0.2 contains a high-severity heap memory corruption vulnerability (CVE-2026-125260) that can be triggered during transcoding to OpenEXR with RLE compression, primarily causing crashes and potential limited data integrity issues. The risk is localized to environments where operators process untrusted media inputs, affecting availability of media processing pipelines but not confidentiality. Leadership should prioritize patch deployment to prevent service disruptions.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Ubiquitous
FFmpeg is embedded in countless media pipelines, servers, apps and OS distributions
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
Medium

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