Skip to content
OpenAdvisories
Medium · 4.6 CVE-2026-49836 EUVD-2026-75804GHSA-2rmg-vrx8-9j2fPYSEC-2026-2969

psd-tools: arbitrary file write via smart-object filename

Published Sep 10, 2026 · Updated Sep 11, 2026 · Assigned by GitHub_M

Description

psd-tools is a Python package for working with Adobe Photoshop PSD files. Prior to version 1.17.1, `SmartObject.save()` writes an embedded smart object to a path taken verbatim from the PSD file. Because that name is attacker-controlled and unsanitised, a tool that extracts embedded objects from an untrusted `.psd` can be made to write attacker-chosen bytes to an attacker-chosen path (absolute or `../`-traversing), outside its intended output directory. A secondary issue in `SmartObject.open()` for external-kind smart objects allows the attacker-controlled `fullPath` descriptor to be used as an arbitrary file read path, enabling exfiltration of the read content to the controlled write destination. Both issues are fixed in v1.17.1.

Affected products

VendorProductAffectedFixed
psd-tools psd-tools < 1.17.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 psd-tools 1.17.4+dfsg.1-1 —
Debian 13 psd-tools No fix yet —
Debian 12 psd-tools No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS psd-tools No fix yet —
Ubuntu 24.04 LTS psd-tools No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI psd-tools < 1.17.1 1.17.1 GHSA-2rmg-vrx8-9j2f

References