Skip to main content
← All vulnerabilities
CVE-2026-59991PYSEC-2026-4139GHSA-8Q6G-VJHF-JP8M

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.17.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • psd-tools psd-tools

    fixed in 1.17.4

  • psd-toolsPyPI

    fixed in 1.17.4

References 3

GitHub · psd-tools/psd-tools