p PatchFirst

CVE-2026-59991

CVE-2026-59991 · psd-tools: Uncontrolled memory allocation in psd-tools composite/numpy via crafted PSD geometry

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 7.5 · High · EPSS 0.5% · Fix available

Published
Updated

Stack: system · python

Affected products and versions

  • psd-tools

    Versions
    • < 1.17.4: Affected

    No fix published

  • psd-tools Debian:12

    Versions
    • 1.10.7+dfsg.1-1
    • 1.10.9+dfsg.1-1
    • 1.12.0+dfsg.1-1
    • 1.12.1+dfsg.1-1
    • 1.14.2+dfsg.1-1
    • 1.14.3+dfsg.1-1
    • 1.15.0+dfsg.1-1
    • 1.16.0+dfsg.1-1
    • 1.17.0+dfsg.1-1
    • 1.17.4+dfsg.1-1
    • 1.9.24+dfsg.1-1
    • 1.9.28+dfsg.1-1
    • 1.9.30+dfsg.1-1
    • 1.9.31+dfsg.1-1
    • 1.9.32+dfsg.1-1
    • 1.9.34+dfsg.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • psd-tools Debian:13

    Versions
    • 1.10.7+dfsg.1-1
    • 1.10.7+dfsg.1-1+deb13u1
    • 1.10.9+dfsg.1-1
    • 1.12.0+dfsg.1-1
    • 1.12.1+dfsg.1-1
    • 1.14.2+dfsg.1-1
    • 1.14.3+dfsg.1-1
    • 1.15.0+dfsg.1-1
    • 1.16.0+dfsg.1-1
    • 1.17.0+dfsg.1-1
    • 1.17.4+dfsg.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • psd-tools Debian:14

    Versions
    • 1.10.7+dfsg.1-1
    • 1.10.9+dfsg.1-1
    • 1.12.0+dfsg.1-1
    • 1.12.1+dfsg.1-1
    • 1.14.2+dfsg.1-1
    • 1.14.3+dfsg.1-1
    • 1.15.0+dfsg.1-1
    • 1.16.0+dfsg.1-1
    • 1.17.0+dfsg.1-1
    Affected ranges
    • ECOSYSTEM: < 1.17.4+dfsg.1-1

    Update to 1.17.4+dfsg.1-1

  • psd-tools PyPI

    Versions
    • 0.1.1
    • 0.1.2
    • 0.1.3
    • 0.1.4
    • 0.10
    • 0.2
    • 0.5
    • 0.6
    • 0.7
    • 0.7.1
    • 0.8
    • 0.8.1
    • 0.8.2
    • 0.8.3
    • 0.8.4
    • 0.9
    • 0.9.1
    • 1.0
    • 1.1
    • 1.10.0
    • 1.10.1
    • 1.10.10
    • 1.10.11
    • 1.10.12
    • 1.10.13
    • 1.10.2
    • 1.10.3
    • 1.10.4
    • 1.10.5
    • 1.10.6
    • 1.10.7
    • 1.10.8
    • 1.10.9
    • 1.11.0
    • 1.11.1
    • 1.12.0
    • 1.12.1
    • 1.12.2
    • 1.13.0
    • 1.13.1
    • 1.14.0
    • 1.14.1
    • 1.14.2
    • 1.14.3
    • 1.15.0.post1
    • 1.16.0
    • 1.17.0
    • 1.17.1
    • 1.17.2
    • 1.17.3
    • 1.2
    • 1.3
    • 1.4
    • 1.8.10
    • 1.8.11
    • 1.8.12
    • 1.8.13
    • 1.8.14
    • 1.8.15
    • 1.8.16
    • 1.8.17
    • 1.8.18
    • 1.8.19
    • 1.8.20
    • 1.8.21
    • 1.8.22
    • 1.8.23
    • 1.8.24
    • 1.8.25
    • 1.8.26
    • 1.8.27
    • 1.8.28
    • 1.8.29
    • 1.8.30
    • 1.8.31
    • 1.8.32
    • 1.8.33
    • 1.8.34
    • 1.8.35
    • 1.8.36
    • 1.8.37
    • 1.8.38
    • 1.8.8
    • 1.8.9
    • 1.9.0
    • 1.9.1
    • 1.9.10
    • 1.9.11
    • 1.9.12
    • 1.9.13
    • 1.9.14
    • 1.9.15
    • 1.9.16
    • 1.9.17
    • 1.9.18
    • 1.9.19
    • 1.9.2
    • 1.9.20
    • 1.9.21
    • 1.9.22
    • 1.9.23
    • 1.9.24
    • 1.9.26
    • 1.9.27
    • 1.9.28
    • 1.9.29
    • 1.9.3
    • 1.9.30
    • 1.9.31
    • 1.9.32
    • 1.9.33
    • 1.9.34
    • 1.9.4
    • 1.9.5
    • 1.9.6
    • 1.9.7
    • 1.9.8
    • 1.9.9
    Affected ranges
    • ECOSYSTEM: < 1.17.4

    Update to 1.17.4

  • psd-tools Ubuntu:24.04:LTS

    Versions
    • 1.9.28+dfsg.1-1
    • 1.9.28+dfsg.1-1build1
    • 1.9.30+dfsg.1-1
    • 1.9.30+dfsg.1-1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • psd-tools Ubuntu:26.10

    Versions
    • 1.12.1+dfsg.1-1
    • 1.17.0+dfsg.1-1
    • 1.17.4+dfsg.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • psd-tools Ubuntu:26.04:LTS

    Versions
    • 1.10.7+dfsg.1-1
    • 1.10.7+dfsg.1-1build1
    • 1.10.9+dfsg.1-1
    • 1.12.0+dfsg.1-1
    • 1.12.1+dfsg.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →