Skip to main content

FFmpeg EUVDEUVD-2026-120302

| CVE-2026-125213 HIGH
Numeric Truncation Error (CWE-197)
2026-11-09 disclosure@vulncheck.com GHSA-px55-qvvr-j3r4
7.3
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Deliver crafted PSD file to victim
  2. Delivery
    Victim decodes it on a 32-bit FFmpeg build
  3. Exploit
    Oversized dimensions truncate av_malloc allocation
  4. Execution
    decode_rle() overflows heap buffer
  5. Impact
    Heap corruption causing crash or possible code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Numeric truncation prevention
Exploitation Conditions

Exploitation requires a 32-bit FFmpeg/libavcodec build (affected through 9.0.2); 64-bit builds are not vulnerable because the allocation size does not truncate. The attacker must supply a crafted PSD image whose chosen dimensions multiplied by channel count exceed 4 GB to overflow and truncate the av_malloc size, and the file must be routed through the RLE decode path (decode_rle). The vector is local with passive user interaction (AV:L/UI:P): a victim or automated pipeline must open or decode the attacker-supplied file. Although no authentication is required (PR:N, unauthenticated), the local vector plus AC:H/AT:P means the attacker must get the malicious file to a vulnerable 32-bit decoder - these are the practical limiting factors on real-world exploitation.

Impact

The input CVSS 4.0 vector (CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H, score 7.3/High) describes high vulnerable-system impact but a constrained path: local attack vector (AV:L), high attack complexity (AC:H), a present attack requirement (AT:P), and passive user interaction (UI:P). These signals cluster toward 'requires the victim to feed a crafted file to a decoder under specific build conditions' rather than remote mass exploitation. The description reinforces this: the integer truncation only occurs on 32-bit builds, where dimensions times channel count can exceed 4 GB and truncate the av_malloc size - 64-bit builds are not affected. No CISA KEV listing is present (not confirmed actively exploited), and no EPSS score was supplied, so widespread-exploitation probability cannot be quantified from the input. The vuln.today decision label is 'this_week', indicating meaningful but not emergency priority. Net: this is a genuine memory-corruption bug worth patching in the normal cycle, but the 32-bit-only constraint, local vector, required user interaction, and AC:H/AT:P materially reduce real-world risk below what the 'RCE' tag alone implies. Missing data to note explicitly: no EPSS score and no KEV status were provided, so exploitation-likelihood signals are incomplete.

Exploit ScenarioDerived

An attacker crafts a malicious PSD image whose declared dimensions and channel counts multiply to more than 4 GB and delivers it to a victim running a 32-bit FFmpeg/libavcodec build (for example a media-processing service, thumbnailer, or desktop tool). When the file is decoded, the oversized value truncates the av_malloc allocation and decode_rle() writes attacker-controlled data past the undersized heap buffer, causing a crash or possible code execution. No working public exploit code is identified in the provided references; the only code artifacts are the fix commit and pull request.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 09, 2026

Heap buffer overflow in FFmpeg's PSD decoder (libavcodec/psd.c) through 9.0.2 lets a crafted PSD image corrupt heap memory, but only on 32-bit builds, where an architecture-level size truncation occurs that does not happen on 64-bit builds. An attacker who gets a malicious file decoded through the RLE path can choose dimensions and channel counts whose product exceeds 4 GB, so the av_malloc size truncates and decode_rle() writes attacker-controlled data past the buffer, giving high confidentiality, integrity and availability impact on the vulnerable system (CVSS 4.0 7.3/High; independent assessment AV:L/AC:H/PR:N/UI:R). No CISA KEV entry and no public exploit code are referenced in the available intelligence, and the intake priority is this_week; the practical constraint is that a victim or automated pipeline must open the file with a vulnerable 32-bit decoder.

RemediationAI

Upstream fix available (PR/commit); a released patched version is not independently confirmed, so apply commit aa4b80b54ee8645b5a77fe835ab2bbae1c9c465c (upstream pull request FFmpeg/FFmpeg#25702) or move to a build that contains the added s->uncompressed_size > INT_MAX rejection in decode_frame, and track the VulnCheck advisory for a tagged release. Because exploitation is confined to 32-bit builds, the most direct compensating control for environments that cannot patch immediately is to decode untrusted media with a 64-bit FFmpeg/libavcodec build, where the allocation does not truncate; the trade-off is an architecture migration for embedded or legacy 32-bit pipelines. Where that is not possible, keep untrusted PSD files out of 32-bit decode paths, for example by rejecting .psd inputs at ingest or dropping them from the file-type allow-list of thumbnail and transcode services, accepting the loss of legitimate PSD processing. Since the assessed vector is local with passive user interaction, limiting who can submit files to automated 32-bit decode services further reduces exposure.

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 root cause is a numeric truncation error (CWE-197) in the PSD decoding path. The decoder derives s->uncompressed_size from the PSD header's image dimensions multiplied by the channel count; on 32-bit builds a product exceeding 4 GB truncates when it reaches av_malloc's 32-bit size_t, so a buffer smaller than the decoder expects is allocated, and decode_rle() then writes the run-length-decoded, attacker-influenced data past the end of that buffer (libavcodec/psd.c around line 450, as pinned in the n9.0.2 source reference). The upstream fix, commit aa4b80b54ee8645b5a77fe835ab2bbae1c9c465c (upstream pull request FFmpeg/FFmpeg#25702), adds an explicit "if (s->uncompressed_size > INT_MAX) return AVERROR_INVALIDDATA;" guard in decode_frame so oversized PSD files are rejected before allocation. No CPE strings were supplied with this record; the affected component is the libavcodec PSD decoder in FFmpeg through 9.0.2. The sources describe crashes and possible code execution but do not detail heap layout or how reliably the overflow converts into control-flow hijack, so exploit reliability beyond memory corruption should be treated as unverified.

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

32-bit-only build plus the >4 GB dimension requirement make AC:H; a crafted file must be opened by a user so AV:L/UI:R; heap corruption enabling possible code execution gives C/I/A:H.

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/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 the PSD decoder in libavcodec/psd.c that allows attackers to corrupt heap memory on 32-bit builds by supplying a crafted PSD image. Attackers can choose dimensions and channel counts whose product exceeds 4 GB, truncating the av_malloc allocation size so decode_rle() writes attacker-controlled data past the buffer, causing crashes or possible code execution.

Executive ViewAI

Why It Matters

CVE-2026-125213 is a heap buffer overflow in FFmpeg's PSD decoder affecting 32-bit builds, where a crafted PSD file can corrupt memory and lead to high confidentiality, integrity, and availability impact. Although no active exploitation has been observed, the risk is concentrated in environments that process untrusted PSD files on 32-bit systems, such as media pipelines or legacy workstations. Leadership should prioritize patching and mitigating 32-bit FFmpeg deployments to prevent potential data breaches or service disruptions.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis; interim mitigations include using 64-bit FFmpeg builds, avoiding decoding of untrusted PSD files on 32-bit systems, and sandboxing PSD processing.

Threat Intelligence Overview

EPSS Score
0.2%
Top 96% exploitable
Prevalence
Ubiquitous
FFmpeg/libavcodec is embedded across media tooling; only 32-bit builds are affected
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.2%
Patch available No
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
High

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.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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