Skip to main content

FFmpeg CVE-2026-135712

| EUVDEUVD-2026-133637 MEDIUM
Integer Overflow or Wraparound (CWE-190)
2026-11-24 VulnCheck GHSA-rw2g-gjp9-8mpr
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 rawvideo with oversized width/height
  2. Exploit
    Victim remuxes input to .y via FFmpeg
  3. Execution
    32-bit integer overflow bypasses size check
  4. Impact
    Out-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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

FFmpeg 0 <9.1

Affected Packages

euvd ffmpeg fix: 9.1

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

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

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.

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

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Ubiquitous
FFmpeg is embedded in countless media pipelines, apps, and platforms worldwide
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub

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.2%
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
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

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

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.

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