Psd-tools
psd-tools: Uncontrolled memory allocation in psd-tools composite/numpy 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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.17.4
Fixed in 1.17.4
Mitigation
Upgrade psd-tools to 1.17.4 or later.
References
- Vendor advisory github.com/psd-tools/psd-tools/security/adviso…
- Patch github.com/psd-tools/psd-tools/commit/a3d9a53a…
- Release notes github.com/psd-tools/psd-tools/releases/tag/v1…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.