{"id":"CVE-2026-59204","published":"2026-07-14T15:38:29Z","modified":"2026-07-21T18:41:18Z","title":"Pillow JPEG2000 tiled decode retains a growing scratch buffer and can be used for denial of service","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00655,"percentile":0.46144,"provenance":"source"},"cwes":[{"id":"CWE-789","name":"Memory Allocation with Excessive Size Value"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-vjc4-5qp5-m44j","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/pull/9704","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/commit/13ada41172142f2fd9f0906f615a00ea623a11ca","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/12.3.0","tags":["x_refsource_MISC"]}],"priority":{"score":15.3,"factors":[{"name":"EPSS percentile","points":9.23},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":[">= 8.2.0, < 12.3.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-21T18:40:47.610956Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pillow","vulnerableRanges":[">=8.2.0, <12.3.0"],"patched":["12.3.0"],"from":["GHSA-vjc4-5qp5-m44j","PYSEC-2026-3496"],"provenance":"source"}],"summary":{"text":"The Pillow imaging library's JPEG2000 decoder (src/libImaging/Jpeg2KDecode.c) accumulates the total component width across every tile in an image instead of recomputing it per tile, so memory use grows with tile count. An attacker who can supply a crafted tiled JPEG2000 file over the network, with no authentication or user interaction needed, can force excessive memory allocation during decoding and cause an out-of-memory denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:08Z"},"euvd":{"id":"EUVD-2026-43730","exploited":false,"provenance":"source"}}