CVE-2026-59204 Details
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.
A denial-of-service vulnerability has been identified in the Pillow library, specifically in the JPEG2000 decoding component. This issue affects versions 8.2.0 through 12.2.0. The vulnerability arises because the decoder improperly accumulates the total width of image components across multiple tiles, rather than calculating it for each tile individually. As a result, a specially crafted tiled JPEG2000 file can cause the decoder to use significantly more memory than necessary, leading to out-of-memory errors during processing.
Users can upgrade to Pillow version 12.3.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/python-pillow/Pillow/security/advisories/GHSA-vjc4-5qp5-m44j | CISA-ADP | ExploitVendor Advisory |
| https://github.com/python-pillow/Pillow/commit/13ada41172142f2fd9f0906f615a00ea623a11ca | [email protected] | Patch |
| https://github.com/python-pillow/Pillow/pull/9704 | [email protected] | ExploitIssue TrackingPatch |
| https://github.com/python-pillow/Pillow/releases/tag/12.3.0 | [email protected] | Release Notes |
| https://github.com/python-pillow/Pillow/security/advisories/GHSA-vjc4-5qp5-m44j | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
| CWE-789 | Memory Allocation with Excessive Size Value | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| python pillow | >= 8.2.0, < 12.3.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 21, 2026 | CVE Modified | CISA-ADP |
| Jul 14, 2026 | Initial Analysis | [email protected] |
| Jul 14, 2026 | New CVE Received | [email protected] |