CVE-2026-59991
HIGH 7.5CVSS 3.1psd-tools composite/numpy has uncontrolled memory allocation via crafted PSD geometry
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.
- Published
- 22 Sep 2026
- Last modified
- 1 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-789
- Also known as
- GHSA-8q6g-vjhf-jp8mPYSEC-2026-4139
- Sources
- NVDJSONOSV GHSA-8q6g-vjhf-jp8mJSONOSV PYSEC-2026-4139JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | psd-tools | < 1.17.4 | 1.17.4 |
References
- https://github.com/psd-tools/psd-tools/commit/a3d9a53ad51e667b5772a4f636ca6f2e16f4b271 · WEB
- https://github.com/psd-tools/psd-tools/releases/tag/v1.17.4 · WEB
- https://github.com/psd-tools/psd-tools/security/advisories/GHSA-8q6g-vjhf-jp8m · WEB
- https://github.com/psd-tools/psd-tools · PACKAGE
- https://pypi.org/project/psd-tools · PACKAGE
- https://github.com/advisories/GHSA-8q6g-vjhf-jp8m · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-59991 · ADVISORY
History
- 25 Nov 2026 21:21 UTC · NVD: first stored (published 22 Sep 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 1 Oct 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 22 Sep 2026)