CVE-2026-59204: Pillow · Excessive Memory Allocation
Affects PillowSource CVE Database V5
Not known to be exploited · CVSS 8.7 High : upgrade to 12.3.0 soon.
Data as of 27 Nov 2026, 22:51 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 46% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 12.3.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 14 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 28 Nov 2026.
What to do
Upgrade Pillow and pillow to 12.3.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| python-pillowPillow | Affected
| Fixed in
|
PyPIpillowpkg:pypi/pillowOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
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.
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.
References
- github.com/python-pillow/Pillow/security/advisories/GHSA-vjc4-5qp5-m44j (opens in a new tab)
- github.com/python-pillow/Pillow/pull/9704 (opens in a new tab)
- github.com/python-pillow/Pillow/commit/13ada41172142f2fd9f0906f615a00ea623a11ca (opens in a new tab)
- github.com/python-pillow/Pillow/releases/tag/12.3.0 (opens in a new tab)