Skip to main content

CVE-2026-112399: CWE-789: Memory Allocation with Excessive Size Value in python-pillow Pillow

0
High
VulnerabilityCVE-2026-112399cvecve-2026-112399cwe-789
Published: 10/19/2026 (10/19/2026, 21:10:11 UTC)
Source: CVE Database V5
Vendor/Project: python-pillow
Product: Pillow

Description

A high-severity vulnerability in the Python Pillow imaging library allows memory exhaustion via crafted APNG images. Versions from 8.1.0 up to but not including 13.0.0 are affected. The flaw involves allocating a large memory buffer for an APNG disposal background before performing decompression-bomb checks, enabling denial of service. This issue is fixed in version 13.0.0.

CVSS v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
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:H/SC:N/SI:N/SA:N

Affected software

python-pillow

Pillow

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

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, 21:48:21 UTC

Technical Analysis

Pillow versions 8.1.0 through 12.x allocate an APNG disposal background at the full canvas size before applying decompression-bomb checks during image opening. A specially crafted APNG with a small first frame but a very large declared canvas size and specific disposal or frame operations triggers the allocation inside Image.open() without loading pixels or iterating frames. This can exhaust system memory and cause a denial of service. The vulnerability is identified as CWE-789 (Memory Allocation with Excessive Size Value) and is addressed in Pillow 13.0.0.

Potential Impact

An attacker can cause the Pillow library to allocate excessive memory when processing a malicious APNG image, leading to memory exhaustion and denial of service. This occurs without requiring user interaction or privileges and can disrupt applications relying on Pillow for image processing.

Mitigation Recommendations

Upgrade to Pillow version 13.0.0 or later, where this issue is fixed. No other mitigations are indicated by the vendor advisory.

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-19T16:58:51.959Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6ad68cd42cdf04f65692eebf

Added to database: 10/19/2026, 21:34:12 UTC

Last enriched: 10/19/2026, 21:48:21 UTC

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

Views: 3

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