CVE-2026-112899: Pillow EPS Load Vulnerability Allows Excessive Resource Consumption

pillow Updated 20 Oct 2026

Summary

20/10/2026
Yes i
Moderate
6.9

CVE-2026-112899: Pillow: EPS load(scale) lets Ghostscript render past the decompression bomb limit. Affects pillow versions >= 2.3.0, < 13.0.0. Fixed in 13.0.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Pillow is a widely-used Python Imaging Library that provides extensive capabilities for opening, manipulating, and saving various image file formats. It is known for its ease of use and versatility, making it a popular choice among developers for image processing tasks. However, a vulnerability has been identified in the EPS loading functionality, which can lead to excessive resource consumption when handling untrusted EPS files.

Vulnerability Detail

The vulnerability arises from the way Pillow handles EPS files during rendering. Specifically, when an application requests Pillow to render an EPS file at a larger scale, it allows Ghostscript to produce an image that exceeds the configured size limit. The size check is performed only after Ghostscript has completed rendering, which can lead to significant resource consumption, including CPU and disk space. An attacker can exploit this by uploading a small EPS file that, when rendered at a higher scale, results in a temporary file that is several times larger than intended. This can lead to denial-of-service conditions as the application consumes excessive resources.

How To Fix

Latest published version: 13.0.0 as of 22 Oct 2026

pip install --upgrade "pillow==13.0.0"

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, applications should avoid rendering untrusted EPS files at scales greater than 1 until the package is updated. Additionally, developers can implement their own checks to validate the size of the EPS files before passing them to Pillow for rendering.

Conclusion

The CVE-2026-112899 vulnerability in Pillow poses a significant risk when handling untrusted EPS files, potentially leading to resource exhaustion. It is crucial for developers to update to the patched version of Pillow and implement appropriate checks to mitigate this risk.

See every vulnerability recorded for pillow →

Share this vulnerability

FAQ

CVE-2026-112899 is a vulnerability in the Pillow library that allows excessive resource consumption when rendering untrusted EPS files at a larger scale.

If your application uses Pillow versions 2.3.0 to 12.3.0 and handles EPS files, it may be affected. You can check your application's dependencies using tools like Vulert.

The vulnerability can lead to denial-of-service conditions due to excessive CPU and disk space consumption when rendering large EPS files.

Yes, the vulnerability has been patched in Pillow version 13.0.0. It is recommended to update to this version or later.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using the Pipfile.lock. You can also check for vulnerabilities without signup using the Vulert playground.

Related vulnerabilities

Recent vulnerabilities recorded for pillow.

How To Fix

Latest published version: 13.0.0 as of 22 Oct 2026

pip install --upgrade "pillow==13.0.0"

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback