Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.4%top 68%

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

0
High
VulnerabilityCVE-2026-59204cvecve-2026-59204cwe-789
Published: 07/14/2026 (07/14/2026, 15:38:29 UTC)
Source: CVE Database V5
Vendor/Project: python-pillow
Product: Pillow

Description

Pillow is a Python imaging library. From 8.2.0 through 12.2.0, src/libImaging/Jpeg2KDecode.c accumulates total_component_width across every tile in a JPEG2000 image instead of recomputing it per tile, allowing a crafted tiled JPEG2000 file to force substantially higher transient memory usage and trigger out-of-memory failures during decoding. This issue is fixed in version 12.3.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

pillow
pkg:pypi/pillow
Affected versions
>=8.2.0 <12.3.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: 07/21/2026, 20:08:26 UTC

Technical Analysis

CVE-2026-59204 is a high-severity vulnerability in the Pillow library affecting versions from 8.2.0 up to but not including 12.3.0. The flaw exists in the JPEG2000 decoding component (src/libImaging/Jpeg2KDecode.c), where total_component_width is accumulated across every tile instead of being recomputed per tile. This causes excessive memory allocation when processing crafted tiled JPEG2000 images, potentially leading to out-of-memory conditions during image decoding. The vulnerability is identified as CWE-789 (Memory Allocation with Excessive Size Value).

Potential Impact

An attacker can supply a specially crafted tiled JPEG2000 image that triggers excessive memory allocation during decoding, causing the application to consume substantially more memory than expected. This can lead to out-of-memory failures, potentially causing denial of service or application instability. There is no indication of code execution or data corruption from the provided data.

Mitigation Recommendations

This vulnerability is fixed in Pillow version 12.3.0. Users should upgrade to version 12.3.0 or later to remediate this issue. No other official remediation or temporary fixes are indicated. Patch status is confirmed by the vendor advisory stating the fix is included in version 12.3.0.

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-07-02T21:05:02.923Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a565a3d68715ace43c7b717

Added to database: 07/14/2026, 15:48:13 UTC

Last enriched: 07/21/2026, 20:08:26 UTC

Last updated: 08/26/2026, 04:42:03 UTC

Views: 62

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