Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.9

Pillow library can allow command injection via crafted filenames

published 2 days ago
Summary

Versions of the Pillow imaging library from 2.6.0 up to 13.0.0 may pass a specially‑named EPS file to Ghostscript, letting an attacker add extra commands. This could let a malicious user run arbitrary code on systems that process such images. Upgrade Pillow to version 13.0.0 or later to stop the problem.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
Ecosystem VendorProductAffected versions
Docker Hardened Images:Debian:13 docker hardened images datascience-notebook All versions
Docker Hardened Images:Debian:13 docker hardened images litellm All versions
Docker Hardened Images:Debian:13 docker hardened images mlflow All versions
Docker Hardened Images:Debian:13 docker hardened images netbox All versions
Docker Hardened Images:Debian:13 docker hardened images pytorch-2.11-cuda12.8-python3.11 All versions
Docker Hardened Images:Debian:13 docker hardened images pytorch-2.11-cuda12.9-python3.12 All versions
Docker Hardened Images:Debian:13 docker hardened images pytorch-2.11-cuda13.0-python3.11 All versions
Docker Hardened Images:Debian:13 docker hardened images pytorch-2.13-cuda12.6-python3.11 All versions
Docker Hardened Images:Debian:13 docker hardened images pytorch-2.13-cuda13.0-python3.12 All versions
Docker Hardened Images:Debian:13 docker hardened images pytorch-2.7-cuda12.8-python3.12 All versions
Docker Hardened Images:Debian:13 docker hardened images pytorch-2.9-cuda12.9-python3.12 All versions
Docker Hardened Images:Debian:13 docker hardened images superset All versions
Original advisory text
Pillow is a Python imaging library. From 2.6.0 until 13.0.0, Pillow is vulnerable to argument injection when invoking…
Pillow is a Python imaging library. From 2.6.0 until 13.0.0, Pillow is vulnerable to argument injection when invoking Ghostscript for EPS input. EpsImagePlugin.Ghostscript passes a caller-controlled input filename after -f without converting it to a safe absolute path, so a name beginning with a hyphen can be interpreted as a Ghostscript option. An attacker who controls the filename can inject Ghostscript arguments. Arbitrary command execution specifically requires a leading @ argument-file filename and control of the referenced text file containing additional Ghostscript arguments; the reported chain reproduces with the default -dSAFER invocation. This issue is fixed in version 13.0.0.
References
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit (estimated)
  • Gives an attacker full control (estimated)
Severity
9.9 Critical
Timeline
Published20 Nov 2026
Updated20 Nov 2026
First seen20 Nov 2026
Sources
Track software like this
Free during beta