psd-tools is vulnerable to Path Traversal
59
CVE Score
Medium
Path Traversal
The SmartObject.save() method in psd-tools writes an embedded smart object to a file path taken verbatim from the parsed PSD without sanitization. When an application extracts embedded smart objects from an untrusted PSD, the embedded name can contain an absolute path or ../ traversal sequences, causing file-supplied bytes to be written outside the intended output directory. For external-kind smart objects, the fullPath descriptor is additionally used as an arbitrary read source, so file contents can be copied into the output directory. The fix strips directory components from the embedded name, confines writes to a caller-supplied directory, and constrains external read paths.
Upgrade the psd-tools library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application extracts embedded smart objects from untrusted PSD files via SmartObject.save().
0.0.1 - 1.17.0
Fixed in 1.17.1psd-tools is vulnerable to Path Traversal in versions 0.0.1 - 1.17.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.