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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 43% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-22T19:11:38.661Z
- Modified: 2026-10-01T17:56:13.306Z
- Also known as: GHSA-8q6g-vjhf-jp8m, PYSEC-2026-4139
- Weaknesses: CWE-789
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- psd-tools psd-tools: < 1.17.4
- psd-tools (PyPI): before 1.17.4

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/psd-tools/psd-tools/security/advisories/GHSA-8q6g-vjhf-jp8m> (exploit, web)
- <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> (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)

## Sources

- CVE List: [CVE-2026-59991](https://www.cve.org/CVERecord?id=CVE-2026-59991), CVE Terms of Use, modified 2026-09-22
- GitHub Advisory Database: [GHSA-8q6g-vjhf-jp8m](https://github.com/advisories/GHSA-8q6g-vjhf-jp8m), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-59991](https://nvd.nist.gov/vuln/detail/CVE-2026-59991), Public domain, modified 2026-09-23
- PyPA Advisory Database: [PYSEC-2026-4139](https://osv.dev/vulnerability/PYSEC-2026-4139), CC-BY-4.0, modified 2026-10-01

---

Page: https://cve.day/CVE-2026-59991 · Whole record: https://cve.day/CVE-2026-59991.json · Rebuilt by cve.day 2026-11-25T22:59:40.535Z
