CVE-2026-112900 Pillow: Argument Injection in Ghostscript call, potentially leading into RCE

Critical 9.2 Published Updated

Attackers can achieve remote code execution by injecting Ghostscript arguments via malicious EPS filenames in Pillow.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-112900?

CVE-2026-112900 is a critical command injection vulnerability in Python Pillow, published on 19 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-88, CWE-78

Which versions are affected by CVE-2026-112900?

3 open source packages ship an affected version, including pillow and Pillow. It affects 1 product.

PackageAffectedFixed in
pillow BitnamiFrom 2.6.013.0.0
pillow PyPIFrom 2.6.013.0.0
Pillow PyPIFrom 2.6.013.0.0

Products include Python Pillow.

How do I fix CVE-2026-112900?

Upgrade pillow to 13.0.0 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-112900 being exploited?

There is no known exploitation of CVE-2026-112900 in the wild and no public exploit code.

Public exploit code: 3 proofs of concept on GitHub.

All Python Pillow vulnerabilities

Sources

Also known as BIT-pillow-2026-112900, DEBIAN-CVE-2026-112900, ECHO-5292-da37-bea6, GHSA-w889-685w-c8fh, ROOT-APP-PYPI-CVE-2026-112900, UBUNTU-CVE-2026-112900.

Is CVE-2026-112900 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free