Skip to main content

Pillow: EPS load(scale) lets Ghostscript render past the decompression bomb limit (CVE-2026-112899)

0
Medium
Published: 10/20/2026 (10/20/2026, 20:53:21 UTC)
Source: GCVE Database
Product: Pillow

Description

Pillow's EPS image loader allows Ghostscript to render images at a scaled size that exceeds Pillow's decompression bomb limit. This occurs because the decompression bomb check is only applied to the unscaled image size declared in the EPS file, not the scaled size requested by the application. As a result, an attacker can cause Ghostscript to generate very large temporary files, consuming excessive disk space and CPU resources. The vulnerability affects Pillow versions from 2.3.0 up to but not including 13.0.0. A patch is available to address this issue.

CVSS v4.0

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

Affected software

PyPIghsa
Pillow
Affected versions
>=2.3.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/20/2026, 22:41:57 UTC

Technical Analysis

The vulnerability in Pillow's EpsImagePlugin arises from the load(scale) method, which requests Ghostscript to render an EPS image at a resolution scaled by the caller's scale parameter. Pillow only performs the decompression bomb size check on the unscaled image dimensions declared in the EPS file, allowing Ghostscript to produce an image several times larger than the configured limit. For example, an EPS declaring 9000×9000 pixels passes the initial check, but loading it with scale=2 causes Ghostscript to render an 18000×18000 pixel image, exceeding the decompression bomb threshold by 3.6 times. The oversized image results in large temporary files (e.g., 972 MB) and increased processing time. The decompression bomb error is only raised after Ghostscript finishes rendering, so the resource exhaustion occurs before Pillow intervenes. This issue has existed since Pillow 2.5.0 and is similar to a previously fixed WMF load(dpi) vulnerability. A patch is available that applies the decompression bomb check to the scaled size before invoking Ghostscript.

Potential Impact

An attacker who can supply a crafted EPS file and control the scale parameter can cause Ghostscript to render images significantly larger than Pillow's decompression bomb limit. This leads to excessive CPU usage and large temporary disk space consumption, potentially causing denial of service conditions on systems processing untrusted EPS files. However, Pillow's internal memory allocation remains bounded, and no memory corruption occurs. The vulnerability does not allow arbitrary code execution or privilege escalation but can degrade service availability.

Mitigation Recommendations

A patch is available for Pillow that applies the decompression bomb check to the scaled image size before invoking Ghostscript, preventing oversized renders. Users should upgrade to a fixed version of Pillow (13.0.0 or later). Until patched, avoid processing untrusted EPS files with scaling or implement external controls to limit resource usage by Ghostscript. Since this is a local library vulnerability, sandboxing or limiting Ghostscript execution time may also help mitigate impact.

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

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-vx6w-vv9f-6gvg
Osv Schema Version
1.4.0
Aliases
["CVE-2026-112899"]
Ecosystems
["PyPI"]
Database Specific Severity
MODERATE
Cvss Version
4.0

Threat ID: 6ad7ec422cdf04f6566b9eac

Added to database: 10/20/2026, 22:33:38 UTC

Last enriched: 10/20/2026, 22:41:57 UTC

Last updated: 10/20/2026, 22:41:57 UTC

Views: 5

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