Skip to content
OpenAdvisories
High · 7.5 CVE-2026-59991 EUVD-2026-84808GHSA-8q6g-vjhf-jp8mPYSEC-2026-4139

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

Published Sep 22, 2026 · Updated Sep 22, 2026 · Assigned by GitHub_M

Description

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 products

VendorProductAffectedFixed
psd-tools psd-tools < 1.17.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 psd-tools 1.17.4+dfsg.1-1 —
Debian 13 psd-tools No fix yet —
Debian 12 psd-tools No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 psd-tools No fix yet —
Ubuntu 26.04 LTS psd-tools No fix yet —
Ubuntu 24.04 LTS psd-tools No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI psd-tools < 1.17.4 1.17.4 GHSA-8q6g-vjhf-jp8m

References