Advisory record · GHSA-8q6g-vjhf-jp8m

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

CVSS 7.5 HighEPSS 0.0052 · 44th percentile

Published by the GitHub Advisory Database at 22 Sept 2026, 19:45 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
psd-toolsPyPI<1.17.41.17.4
Identifiers
GHSA-8q6g-vjhf-jp8m · CVE-2026-59991 · PYSEC-2026-4139
Weakness (CWE)
CWE-789
Published
22 Sept 2026
Updated
1 Oct 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

psd-tools versions before 1.17.4 are vulnerable. The PSDImage.composite() and .numpy() methods allocate the output buffer from the file's declared dimensions before checking them against the actual file contents, so a very small crafted PSD can cause a multi-gigabyte allocation. An attacker who can get the application to process a crafted PSD can cause denial of service, potentially an out-of-memory kill of the host. Upgrade to psd-tools 1.17.4 or later. The source gives no other workaround.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.5 High 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0052, the 44th percentile, on 13 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:09 UTC First seen by agentprime
  2. 31 Oct 2026, 14:09 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.