Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. psd-tools
  4. ›
  5. CVE-2026-49836

CVE-2026-49836: psd-tools vulnerable to arbitrary file write via smart-object filename

July 9, 2026

In psd-tools (all releases exposing the SmartObject API through v1.17.0), 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.

References

  • github.com/advisories/GHSA-2rmg-vrx8-9j2f
  • github.com/psd-tools/psd-tools/pull/657
  • github.com/psd-tools/psd-tools/security/advisories/GHSA-2rmg-vrx8-9j2f
  • nvd.nist.gov/vuln/detail/CVE-2026-49836

Code Behaviors & Features

Detect and mitigate CVE-2026-49836 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.17.1

Fixed versions

  • 1.17.1

Solution

Upgrade to version 1.17.1 or above.

Impact 4.4 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-73: External Control of File Name or Path

Source file

pypi/psd-tools/CVE-2026-49836.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:19:03 +0000.