{"id":"CVE-2026-59991","published":"2026-09-22T19:11:38Z","modified":"2026-09-22T19:37:39Z","title":"psd-tools: Uncontrolled memory allocation in psd-tools composite/numpy via crafted PSD geometry","vendor":"psd-tools","product":"psd-tools","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00517,"percentile":0.44909,"provenance":"source"},"cwes":[{"id":"CWE-789","name":"Memory Allocation with Excessive Size Value"}],"references":[{"url":"https://github.com/psd-tools/psd-tools/security/advisories/GHSA-8q6g-vjhf-jp8m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/psd-tools/psd-tools/commit/a3d9a53ad51e667b5772a4f636ca6f2e16f4b271","tags":["x_refsource_MISC"]},{"url":"https://github.com/psd-tools/psd-tools/releases/tag/v1.17.4","tags":["x_refsource_MISC"]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":8.98},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"psd-tools","affectedVersions":[{"vendor":"psd-tools","product":"psd-tools","versions":["< 1.17.4"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-09-22T19:36:58.263987Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"psd-tools","vulnerableRanges":["<1.17.4"],"patched":["1.17.4"],"from":["GHSA-8q6g-vjhf-jp8m","PYSEC-2026-4139"],"provenance":"source"}],"summary":{"text":"The psd-tools Python package (versions before 1.17.4) has an uncontrolled memory allocation flaw in its composite() and numpy() methods of PSDImage, which allocate output buffers based on attacker-controlled PSD header and layer geometry before validating them against the file data. An attacker who can supply a crafted PSD file to a service that composites or converts untrusted files needs no authentication or user interaction, and a tiny file can trigger multi-gigabyte allocations that can crash the process through out-of-memory termination.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:32Z"},"euvd":{"id":"EUVD-2026-84808","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-psd-tools-cve-2020-10571","parents":[{"from":"CVE-2020-10571","to":"CVE-2026-59991","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/psd_tools/compression/__init__.py"],"commits":["https://github.com/psd-tools/psd-tools/commit/fd51f8b4a52bc9c1c06d1035dfdf2cd920e87074","https://github.com/psd-tools/psd-tools/commit/a3d9a53ad51e667b5772a4f636ca6f2e16f4b271"],"basis":"shared function","functions":["decompress"]}]},{"from":"CVE-2026-27809","to":"CVE-2026-59991","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/psd_tools/compression/__init__.py"],"commits":["https://github.com/psd-tools/psd-tools/commit/6c0a78f195b5942757886a1863793fd5946c1fb1","https://github.com/psd-tools/psd-tools/commit/a3d9a53ad51e667b5772a4f636ca6f2e16f4b271"],"basis":"shared function","functions":["decompress"]}]}],"packageHistory":[{"cve":"CVE-2020-10571","published":"2020-03-14","fixed":"1.9.4","kev":false},{"cve":"CVE-2026-27809","published":"2026-02-25","fixed":"1.12.2","kev":false},{"cve":"CVE-2026-49836","published":"2026-09-10","fixed":"1.17.1","kev":false,"link":{"from":"CVE-2026-49836","to":"CVE-2026-59991","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:psd-tools","fromFixed":"1.17.1","toFixed":"1.17.4","daysApart":12},{"kind":"similar","provenance":"machine","score":0.25,"basis":"same product + description similarity"}]}},{"cve":"CVE-2026-59991","published":"2026-09-22","fixed":"1.17.4","kev":false}],"package":"PyPI:psd-tools"}}