{"id":"CVE-2026-59991","published":"2026-09-22T20:17:04.123","lastModified":"2026-09-23T18:12:04.247","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.","cvssScore":7.5,"cvssSeverity":"HIGH","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","cwes":["CWE-789"],"vendors":[],"products":[],"references":[{"url":"https://github.com/psd-tools/psd-tools/commit/a3d9a53ad51e667b5772a4f636ca6f2e16f4b271","tags":[]},{"url":"https://github.com/psd-tools/psd-tools/releases/tag/v1.17.4","tags":[]},{"url":"https://github.com/psd-tools/psd-tools/security/advisories/GHSA-8q6g-vjhf-jp8m","tags":[]},{"url":"https://github.com/psd-tools/psd-tools/security/advisories/GHSA-8q6g-vjhf-jp8m","tags":[]}],"exploitRefs":[{"url":"https://github.com/psd-tools/psd-tools/commit/a3d9a53ad51e667b5772a4f636ca6f2e16f4b271","tags":[]},{"url":"https://github.com/psd-tools/psd-tools/releases/tag/v1.17.4","tags":[]},{"url":"https://github.com/psd-tools/psd-tools/security/advisories/GHSA-8q6g-vjhf-jp8m","tags":[]},{"url":"https://github.com/psd-tools/psd-tools/security/advisories/GHSA-8q6g-vjhf-jp8m","tags":[]}],"hasPoc":true,"ai":{"summary":"The psd-tools Python package had a memory allocation vulnerability where attacker-controlled PSD files could trigger massive memory allocations before validating file data, potentially causing out-of-memory crashes in services processing untrusted PSD files.","exploitability":"Exploitation is relatively straightforward requiring only a crafted small PSD file that triggers multi-gigabyte memory allocations, with no special preconditions needed beyond having the vulnerable package installed.","blast_radius":"Services processing untrusted PSD files could experience frequent out-of-memory terminations, potentially leading to denial of service across affected applications that use this library.","remediation":"Upgrade to psd-tools version 1.17.4 or later to fix the memory allocation vulnerability.","detection":"No reliable host or network indicator is derivable from the published description.","tags":["memory-corruption","dos","python"],"model":"garnet-coder","analyzedAt":"2026-10-18T16:11:56.385Z"}}