CVE-2026-59991 json
psd-tools: Uncontrolled memory allocation in psd-tools composite/numpy via crafted PSD geometry
published last mo. modified last mo. also EUVD-2026-84808 , GHSA-8q6g-vjhf-jp8m , PYSEC-2026-4139
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 44%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi psd-tools 1.17.4
- psd-tools_project psd-tools 1.17.4
- psd-tools Debian 14 1.17.4+dfsg.1-1
debian advisories DEBIAN-CVE-2026-59991
Is CVE-2026-59991 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- last mo.
Exploit prediction
0.52% chance of exploitation in the next 30 days, higher than 44% of all scored CVEs (FIRST EPSS, 2026-11-11).
Exploits and checks
- github.com https://github.com/psd-tools/psd-tools/security/advisories/GHSA-8q6g-vjhf-jp8m referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | psd-tools | <1.17.4 |
1.17.4 |
Affected products
- psd-tools psd-tools
Classification
- Weakness
-
- CWE-789 Memory Allocation with Excessive Size Value
References
-
github.com
/psd-tools/psd-tools/commit/a3d9a53ad51e667b5772a4f636ca6f2e16f4b271
web
-
github.com
/psd-tools/psd-tools/security/advisories/GHSA-8q6g-vjhf-jp8m
exploit, web
-
github.com
/psd-tools/psd-tools/releases/tag/v1.17.4
web
-
github.com
/psd-tools/psd-tools
package
-
pypi.org
/project/psd-tools
package
-
github.com
/advisories/GHSA-8q6g-vjhf-jp8m
advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-59991
advisory
Sources
- CVE List CVE-2026-59991
- GitHub Advisory GHSA-8q6g-vjhf-jp8m
- NVD CVE-2026-59991
- OSV PYSEC-2026-4139
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.