Skip to main content

CVE-2026-112900: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in python-pillow Pillow

0
Critical
VulnerabilityCVE-2026-112900cvecve-2026-112900cwe-78cwe-88
Published: 10/19/2026 (10/19/2026, 22:07:50 UTC)
Source: CVE Database V5
Vendor/Project: python-pillow
Product: Pillow

Description

Pillow, a Python imaging library, has a critical OS command injection vulnerability in versions from 2.6.0 up to but not including 13.0.0. The vulnerability arises when Pillow invokes Ghostscript for EPS input, passing a user-controlled filename without sanitization. This allows an attacker to inject Ghostscript arguments by using filenames starting with a hyphen. Exploitation requires control over an argument-file referenced by a leading @, enabling arbitrary command execution. The issue is fixed in version 13.0.0.

CVSS v4.0

Score 9.2critical

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

python-pillow

Pillow

Affected versions
>=2.6.0 <13.0.0
pillow
pkg:pypi/pillow
Affected versions
>=2.6.0 <13.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/19/2026, 22:33:15 UTC

Technical Analysis

CVE-2026-112900 describes an OS command injection vulnerability in the Pillow library's EpsImagePlugin.Ghostscript component. From versions 2.6.0 through 12.x, Pillow passes a caller-controlled filename argument to Ghostscript without converting it to a safe absolute path. Filenames beginning with a hyphen can be interpreted as Ghostscript options, enabling argument injection. Full arbitrary command execution requires an argument-file (@filename) controlled by the attacker containing additional Ghostscript arguments. The vulnerability is resolved in Pillow 13.0.0.

Potential Impact

An attacker who can control the filename passed to Pillow's Ghostscript invocation can inject arbitrary Ghostscript arguments, potentially leading to arbitrary command execution. This can result in full compromise of the system running the vulnerable Pillow version. The CVSS 4.0 score is 9.2 (critical), reflecting network attack vector, low complexity, no privileges or user interaction required, and high impact on confidentiality, integrity, and availability.

Mitigation Recommendations

This vulnerability is fixed in Pillow version 13.0.0. Users should upgrade to version 13.0.0 or later to remediate the issue. No other mitigation or temporary workaround is indicated in the provided data.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-10-19T20:16:09.857Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6ad697602cdf04f6569bbdc8

Added to database: 10/19/2026, 22:19:12 UTC

Last enriched: 10/19/2026, 22:33:15 UTC

Last updated: 10/19/2026, 22:48:21 UTC

Views: 15

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses