Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft rawvideo with oversized width/height
-
ExploitVictim remuxes input to .y via FFmpeg
-
Execution32-bit integer overflow bypasses size check
-
ImpactOut-of-bounds heap read leaks memory or crashes
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 a vulnerable FFmpeg (before 9.1) to process an attacker-supplied rawvideo stream that declares very large width and height, and to write it out via the image2 muxer to the single-plane '.y' (grayscale) image format, where write_packet()'s split_planes size check performs the overflowing 'par->width * par->height' 32-bit multiplication. Limiting factors: the vector is LOCAL (AV:L) - the attacker cannot trigger this remotely and must get the file processed locally or through a conversion pipeline; passive user interaction is required (UI:P), so a user or automated job must initiate the remux/encode; and the specific .y output format must be selected. Impact is bounded to limited heap disclosure into output files (VC:L) and application crash (VA:H), with no integrity impact. |
| Impact | This is a genuine but moderate-priority issue rather than a drop-everything emergency, consistent with the input's 'this_month' decision label (not act_now/emergency) and its CVSS 4.0 score of 6.9. The vector CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P reports a LOCAL attack vector with low complexity and no privileges (PR:N, i.e. unauthenticated) but PASSIVE user interaction, meaning the attacker must get a victim to process a crafted file through FFmpeg rather than exploit it over a network. Impact is split: VC:L reflects a limited heap-memory disclosure into output files, and VA:H reflects a reliable crash/DoS, with no integrity impact (VI:N) and no scope change (SC/SI/SA:N) - matching the description's 'leak heap memory into output files or crash the application.' No EPSS score and no KEV listing were supplied, and there is no confirmed working proof-of-concept, so there is no signal of active or widespread exploitation; the only corroboration is the VulnCheck advisory and the vendor patch. The source diff confirms the mechanism (CWE-190: a 32-bit 'int ysize = par->width * par->height' overflowing before a size check), so the technical claim is well evidenced even though real-world exploitation signals are absent. Net: prioritize because FFmpeg is pervasive, but the local vector, required user interaction, and specialized output format constrain practical risk. |
| Exploit ScenarioDerived | An attacker crafts a rawvideo input whose stream declares very large width and height values, then relies on a victim (or an automated pipeline) using a vulnerable FFmpeg to remux or encode that input into the image2 '.y' output format. The integer overflow in write_packet()'s split_planes size check bypasses the bounds validation, causing an out-of-bounds heap read that either leaks adjacent heap memory into the produced output files or crashes the process. No public working exploit is identified at time of analysis; exploitation requires local processing with passive user interaction (AV:L/UI:P), not remote delivery. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 24, 2026
Heap out-of-bounds read in FFmpeg before 9.1 occurs when the image2 muxer writes a rawvideo stream that declares very large width and height into a single-plane '.y' grayscale image: the split_planes size check in write_packet() performs the width-times-height multiplication in 32-bit integers, so the computed plane size can wrap and validate the packet against a too-small value, letting adjacent heap bytes be copied into the output file or crashing the process. Builds up to but not including 9.1 that remux attacker-supplied rawvideo into .y image files are affected, with the assessed vector being local (AV:L) and requiring a user or automated job to initiate the conversion (UI:R), yielding limited confidentiality loss and high availability impact. No public exploit code has been identified at time of analysis, the issue is not in CISA KEV, and the priority signal is 'this_month' rather than an emergency.
RemediationAI
Vendor-released patch: FFmpeg 9.1, which contains upstream commit ff53919a2d8442058d58ba0e83d16cc9e29d73fb (pull request https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24932) widening the plane-size arithmetic to int64_t and adding non-positive dimension and ysize > pkt->size guards; upgrade any build before 9.1, including the 9.0.x line referenced in the advisory, to 9.1 or later, or carry the commit as a backport if a distribution rebuild is required. Because exploitation needs the image2 muxer to emit single-plane '.y' grayscale output, a compensating control for pipelines that must stay on older builds is to avoid remuxing untrusted rawvideo into that specific output format and to keep such conversions inside a sandboxed, resource-limited worker; the trade-off is that '.y' image-sequence output cannot be produced from untrusted input until the upgrade, and other image2 pixel formats are not described as reaching the flawed split_planes branch. Advisory detail is available at https://www.vulncheck.com/advisories/ffmpeg-before-9.1-integer-overflow-out-of-bounds-read-via-img2enc-c-write-packet and the fix can be reviewed at https://github.com/FFmpeg/FFmpeg/commit/ff53919a2d8442058d58ba0e83d16cc9e29d73fb.
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 flaw lives in libavformat/img2enc.c in the image2 muxer, which writes individual video frames out as numbered image files. When the muxer handles a single-plane pixel format (the '.y' grayscale output referenced in the advisory), write_packet() calls a split_planes helper that derives the luma plane size as par->width * par->height and the chroma plane size using AV_CEIL_RSHIFT(par->width, desc->log2_chroma_w) * AV_CEIL_RSHIFT(par->height, desc->log2_chroma_h), then compares ysize + 2*usize + (desc->nb_components > 3) * ysize against pkt->size. Both products and the sum are held in 32-bit int, so a rawvideo stream declaring sufficiently large dimensions overflows the computation and the bounds check passes even though the packet is smaller than the actual plane geometry, after which the encoder reads past the end of the packet buffer. This is CWE-190 (integer overflow or wraparound) manifesting as an out-of-bounds heap read. The upstream fix in commit ff53919a2d8442058d58ba0e83d16cc9e29d73fb promotes ysize and usize to int64_t, adds explicit rejection of non-positive width and height, and adds a short-circuit 'ysize > pkt->size' test so the arithmetic can no longer wrap past the check. A pointer to the vulnerable code is given against the n9.0.2 source tree, confirming the affected generation of the codebase.
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
Local processing of a crafted file needs a user-initiated conversion (AV:L/UI:R) with no privileges (PR:N); limited heap-memory disclosure (C:L) and a reliable crash (A:H), no integrity impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
FFmpeg before 9.1 contains an integer overflow vulnerability in the split_planes size check of write_packet() in libavformat/img2enc.c that allows out-of-bounds heap reads. Attackers can supply a crafted input whose rawvideo stream declares very large width and height, remuxed into .y image files, to leak heap memory into output files or crash the application.
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
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Related Vulnerabilities in FFmpeg Memory Corruption and NULL Dereference Flaws
View all 34FFmpeg 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-133637
GHSA-rw2g-gjp9-8mpr
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB