Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted PSD file to victim
-
DeliveryVictim decodes it on a 32-bit FFmpeg build
-
ExploitOversized dimensions truncate av_malloc allocation
-
Executiondecode_rle() overflows heap buffer
-
ImpactHeap 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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
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.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
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
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.
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
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.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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-120302
GHSA-px55-qvvr-j3r4
NVD
CVE.org
EPSS
VulDB
Exploit-DB