Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. psd-tools
  4. ›
  5. CVE-2026-59991

CVE-2026-59991: psd-tools composite/numpy has uncontrolled memory allocation via crafted PSD geometry

September 22, 2026

PSDImage.composite() (and .numpy()) allocate the output image buffer from the PSD’s header geometry (width × height × channels × depth, and per-layer rectangles) before validating those values against the actual file contents. A tiny crafted PSD declaring huge dimensions causes a multi-gigabyte allocation. Critically, composite() then returns a (black) image with only a warning, no exception is raised, so a caller cannot detect or guard against it.

References

  • github.com/advisories/GHSA-8q6g-vjhf-jp8m
  • github.com/psd-tools/psd-tools/commit/a3d9a53ad51e667b5772a4f636ca6f2e16f4b271
  • github.com/psd-tools/psd-tools/releases/tag/v1.17.4
  • github.com/psd-tools/psd-tools/security/advisories/GHSA-8q6g-vjhf-jp8m
  • nvd.nist.gov/vuln/detail/CVE-2026-59991

Code Behaviors & Features

Detect and mitigate CVE-2026-59991 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.17.4

Fixed versions

  • 1.17.4

Solution

Upgrade to version 1.17.4 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-789: Memory Allocation with Excessive Size Value

Source file

pypi/psd-tools/CVE-2026-59991.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 Oct 2026 12:17:14 +0000.