Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft video with vflip display matrix
-
DeliveryDeliver file to FFmpeg transcode pipeline
-
ExploitOperator encodes output to SGI format
-
ExecutionNegative linesize mishandled by unsigned size variables
-
ImpactOut-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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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-120211
GHSA-9vrv-58pr-qmj5
NVD
CVE.org
EPSS
Exploit-DB