Details
Weaknesses
CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) via CWE-73 (External Control of File Name or Path).
Resources
- Fix PR: https://github.com/psd-tools/psd-tools/pull/657
- Release: https://github.com/psd-tools/psd-tools/releases/tag/v1.17.1
- Affected source (tag
v1.17.0):src/psd_tools/api/smart_object.py:170-179(sink),:62-67(untrustedfilename);src/psd_tools/psd/linked_layer.py:100(source). - Distinct in class from the published advisories (GHSA-24p2-j2jr-386w — compression resource exhaustion; GHSA-22jr-vc7j-g762 — buffer overflow). The
save()write logic is unchanged since theSmartObjectAPI was introduced, so all releases exposing it are affected.