Description
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.
Published: 2026-11-09
Score: 7.3 High
EPSS: n/a
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

FFmpeg through 9.0.2 contains a heap buffer overflow in the PSD decoder. Attackers can supply a crafted PSD file whose dimensions and channel counts exceed 4 GB, causing a truncation of the allocation size in 32‑bit builds. The overflow allows overwrite of heap memory, which can crash the process or enable execution of attacker‑controlled code. This weakness is an arithmetic overflow that results in an under‑allocated buffer (CWE‑197).

Affected Systems

The vulnerability affects FFmpeg version 9.0.2 and earlier on 32‑bit architectures. Systems that use the FFmpeg library to process PSD images on 32‑bit platforms are susceptible; 64‑bit builds are not impacted because the truncation does not occur. The affected product is the FFmpeg codec library included in many media processing applications.

Risk and Exploitability

The CVSS score of 7.3 indicates a serious risk. No EPSS score is available, and the issue is not listed in the CISA KEV catalog, so current exploitation rates are unknown, but the potential for code execution makes it a high‑consequence flaw. The likely attack vector is the delivery of a malicious PSD file—either via a local file or an upload—to an application that decodes it with FFmpeg. Attackers need only provide the file; no privileged permissions are required beyond the application’s execution context. Rapid remediation is recommended for all systems running the affected FFmpeg versions.

Generated by OpenCVE AI on November 9, 2026 at 21:08 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FFmpeg to a version newer than 9.0.2 that contains the patch for the PSD decoder.
  • If upgrade is not possible, disable PSD decoding in FFmpeg or block PSD file uploads in the application.
  • Add application‑level checks to reject PSD files with dimensions or channel counts that would overflow the 32‑bit allocation limit.
  • Enable compiler hardening options such as stack protection, ASLR, and PIE to reduce exploitation success.

Generated by OpenCVE AI on November 9, 2026 at 21:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 09 Nov 2026 19:15:00 +0000

Type Values Removed Values Added
Description 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.
Title FFmpeg through 9.0.2 Heap Buffer Overflow via PSD Decoder RLE Path
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Weaknesses CWE-197
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
References
Metrics cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7.3, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-09T19:11:29.566Z

Reserved: 2026-11-09T18:15:16.679Z

Link: CVE-2026-125213

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-09T19:16:58.250

Modified: 2026-11-09T19:16:58.250

Link: CVE-2026-125213

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-09T21:15:14Z

Weaknesses