← All stories
● Covered by 1 source · 1 reportMedium impact1 neutral

Critical Flaw in Python's Pillow Library Allows Code Execution via Crafted Image Filenames

🔄 Updated 15d ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Pillow's EPS handling passes unchecked filenames to Ghostscript.
  • Crafted filenames can execute arbitrary commands on the server.
  • The vulnerability affects Pillow versions 2.6.0 through 12.3.0.
  • Fixed in Pillow version 13.0.0, released October 16.

Vulnerability Details

A critical flaw, identified as CVE-2026-112900, exists in Pillow, the most widely used Python image library. This vulnerability allows for remote code execution when processing EPS images. The issue stems from Pillow passing the filename of an EPS image directly to Ghostscript, an external program used for rendering, without prior validation. An attacker can craft a malicious filename that Ghostscript interprets as commands rather than a file path, leading to the execution of arbitrary operating system commands.

Impact and Trigger Conditions

The flaw is triggered by the filename itself, not the content of the EPS image. This means even a harmless EPS file can be weaponized if an attacker controls its name. Systems that accept user input for filenames, such as web upload forms, avatar tools, and document processing pipelines, are particularly vulnerable. The exploit requires Ghostscript to be installed on the host system, as Pillow relies on it to open EPS files. The vulnerability affects Pillow versions from 2.6.0 up to 12.3.0.

Additional Critical Fixes

Pillow version 13.0.0, released on October 16, includes several security fixes across various severity levels. Beyond the EPS filename vulnerability, two other critical issues were addressed. One is a memory bug involving stale image data reuse after a mode change. The other covers two overflow flaws in Pillow's JPEG decoding. One JPEG flaw in the FlashPix (FPX) format could lead to command execution from a single Image.open() call on a crafted file if the optional olefile package is installed. Another JPEG flaw (CVE-2026-112403) involves a memory buffer overflow when creating thumbnails of crafted lossless JPEGs.

Industry Reach and Remediation

Pillow is a foundational library in the Python ecosystem, used in web development, machine learning, and various image processing tasks, with an estimated 436 million downloads per month. While none of the discovered flaws are known to be actively exploited, the widespread use of Pillow makes patching critical. Users are advised to upgrade to Pillow version 13.0.0 immediately to mitigate these security risks.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~4 min · 3 stories · Nov 07

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

A critical vulnerability (CVE-2026-112900) in Python's Pillow image library allows remote code execution by exploiting how it handles EPS image filenames passed to Ghostscript. Attackers can craft filenames to execute commands on servers, impacting applications that process user-supplied images. The flaw has been patched in Pillow version 13.0.0, released on October 16.