ADVISORIES

Vulnerability

CVE-2026-59991

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.

4 advisories report this vulnerability, across 3 ecosystems.

High severity All PyPI 2Debian 1Ubuntu 1

Advisories in PyPI

  • GHSA-8q6g-vjhf-jp8m

    psd-tools composite/numpy has uncontrolled memory allocation via crafted PSD geometry

    High CVE-2026-59991 PyPI Updated 1 October 2026
  • PYSEC-2026-4139

    psd-tools composite/numpy has uncontrolled memory allocation via crafted PSD geometry

    CVE-2026-59991 PyPI Updated 1 October 2026

References