Skip to main content

FFmpeg EUVDEUVD-2026-120211

| CVE-2026-125261 MEDIUM
Out-of-bounds Read (CWE-125)
2026-11-09 VulnCheck GHSA-9vrv-58pr-qmj5
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 video with vflip display matrix
  2. Delivery
    Deliver file to FFmpeg transcode pipeline
  3. Exploit
    Operator encodes output to SGI format
  4. Execution
    Negative linesize mishandled by unsigned size variables
  5. Impact
    Out-of-bounds pixel read crashes process and leaks adjacent memory

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

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 (≤9.0.2) encode output to the SGI image format via the SGI encoder (libavcodec/sgienc.c), AND that the input video carries a display matrix which triggers the autorotate vertical flip, yielding a negative p->linesize[0] that the unsigned size variables mishandle. Limiting factors: the attack vector is Local (AV:L) so an attacker-controlled file must reach the processing pipeline; a user or automated job must actually initiate the transcode (UI:P passive interaction); and the SGI output format is an uncommon encoding target, so default FFmpeg usage that does not emit SGI images is unaffected. Impact is overwhelmingly a process crash (DoS) with only limited leakage of memory adjacent to the frame into the produced image.

Impact

This is a moderate-severity denial-of-service issue, not a critical priority. The input CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H) scores 6.9, driven almost entirely by VA:H (process crash); VC:L reflects only limited disclosure of memory adjacent to the frame buffer, and VI:N means no integrity impact. The attack vector is Local (AV:L) and requires passive user/operator interaction (UI:P) to initiate the transcode, which materially limits real-world exposure compared to a remote-unauthenticated flaw. No EPSS score is supplied, there is no CISA KEV listing, and no public exploit was identified in the provided references - so no signal points to active or imminent widespread exploitation. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a real-but-bounded bug. The practical ceiling on risk is that exploitation only matters for pipelines that transcode untrusted input to the SGI image format AND have autorotate flipping active; that is a narrow configuration despite FFmpeg's enormous overall footprint. Net: patch on a normal monthly cycle; treat as elevated only for services that accept untrusted video and encode to SGI.

Exploit ScenarioDerived

An attacker crafts a video whose display/rotation matrix forces an autorotate vertical flip (producing a negative linesize), then gets a user or automated media service to transcode it to an SGI image using FFmpeg ≤9.0.2. Because the encoder's size variables are unsigned, the negative linesize is mishandled and encode_frame() reads pixel data far outside the frame buffer, crashing the process and potentially copying small amounts of adjacent memory into the output image. No public exploit identified at time of analysis; the local vector and operator-initiated transcode (UI:P) constrain delivery.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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

Out-of-bounds read in FFmpeg's SGI image encoder (libavcodec/sgienc.c, all versions through 9.0.2) lets a crafted video crash the transcoding process and copy a limited amount of memory adjacent to the frame into the produced SGI image. The flaw only manifests when FFmpeg is explicitly asked to emit SGI output and the input carries a display matrix that triggers the autorotate vertical flip, yielding a negative p->linesize[0] that the encoder's unsigned size variables mis-handle; ordinary FFmpeg usage that never targets the SGI encoder is unaffected. Reaching the bug requires local delivery of an attacker-controlled file plus a user or automated job actually starting the transcode (CVSS 3.1 AV:L/UI:R), the dominant impact is denial of service rather than code execution, this is a moderate-severity issue rather than a critical priority, and no public exploit has been identified at time of analysis.

RemediationAI

Apply the upstream fix, commit c6e5b6105aa13f6b0df2a646da608078cfe52d79 (pull request 25690), which makes the encoder's size variables signed and casts the allocation size and linesize arithmetic to int64_t/ptrdiff_t; vendor patch data indicates a fix is available, but no tagged FFmpeg release version above 9.0.2 is confirmed in the supplied data, so confirm whether your distribution or build has backported the commit before assuming a release upgrade alone resolves it. Until then, the practical compensating controls follow directly from the trigger conditions: do not transcode untrusted input to SGI output (remove or block the sgi encoder from pipelines that accept user-supplied media, at the cost of losing SGI image export), and/or disable autorotate (for example -autorotate 0, or ignore display-matrix side data) so the vertical flip that produces a negative linesize never occurs, at the cost of images no longer being automatically rotated per their metadata. Neither workaround removes the underlying out-of-bounds read, so patching remains the complete 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

The SGI (IRIS RGB) image encoder in libavcodec/sgienc.c packs raw pixel data into SGI output frames. In encode_frame() the local size variables width, height, depth, dimension, bytes_per_channel, pixmax and put_be were declared as unsigned int, and the input row pointer was computed as p->data[0] + p->linesize[0] * (height - 1) with signed linesize arithmetic performed in an unsigned domain. When a source video carries a display matrix (rotation) that makes FFmpeg's autorotate logic apply a vertical flip, the resulting frame has a negative linesize; multiplied and indexed through the unsigned variables, that negative stride turns into a huge offset, so the encoder reads pixel data far outside the allocated frame buffer - a CWE-125 out-of-bounds read. The upstream fix changes those variables to signed int, casts the ff_alloc_packet() size computation to int64_t, and casts the linesize multiplications to ptrdiff_t so negative strides are handled correctly. Note that the crash (A:H) is the reliable outcome, while leakage of adjacent memory into the written image is bounded (C:L); the bug does not provide write primitives or code execution in the supplied evidence.

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

An attacker-supplied file must be transcoded locally (AV:L) and an operator must start the SGI encode (UI:R); the OOB read leaks limited adjacent memory (C:L) and crashes the process (A:H), with no integrity impact.

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 out-of-bounds read vulnerability in the SGI encoder's encode_frame() in libavcodec/sgienc.c, where unsigned size variables mis-handle negative linesize frames. Attackers can supply a video whose display matrix triggers autorotate vflip, so transcoding to SGI images reads pixel data far outside the frame and crashes the process.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Ubiquitous
FFmpeg is a near-universal media library embedded across platforms and services
Data Quality
6 sources
Confidence: High

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 Yes
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.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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