CVE-2026-59991

published 22 Sep 2026 · updated 22 Sep 2026

psd-tools: Uncontrolled memory allocation in psd-tools composite/numpy via crafted PSD geometry

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

psd-tools is a Python package for working with Adobe Photoshop PSD files. Prior to 1.17.4, PSDImage.composite() and PSDImage.numpy() allocated output buffers from attacker-controlled PSD header geometry, including width, height, channels, depth, and per-layer rectangles, before validating those values against the available file data. A tiny crafted PSD could therefore cause multi-gigabyte memory allocation, and PSDImage.composite() could return a black image with only a warning instead of raising an exception. Services that composite untrusted PSD files could be terminated by out-of-memory handling. This issue is fixed in version 1.17.4.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
psd-tools<1.17.4

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-59991 severity on Zeptric[![CVE-2026-59991](https://zeptric.io/badge/cve/CVE-2026-59991.svg)](https://zeptric.io/cve/CVE-2026-59991)