# CVE-2026-59204: Pillow JPEG2000 tiled decode retains a growing scratch buffer and can be used for denial of service

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 34% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-07-14T15:38:29.545Z
- Modified: 2026-10-24T21:10:00.130Z
- Also known as: GHSA-vjc4-5qp5-m44j, BIT-PILLOW-2026-59204, PYSEC-2026-3496
- Weaknesses: CWE-770, CWE-789
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- python-pillow Pillow: >= 8.2.0, < 12.3.0
- pillow (PyPI): from 8.2.0 before 12.3.0
- python pillow: from 8.2.0 before 12.3.0
- pillow (Bitnami): from 8.2.0 before 12.3.0

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:4.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:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-vjc4-5qp5-m44j> (exploit, advisory, vendor-advisory, web)
- <https://github.com/python-pillow/Pillow/pull/9704> (exploit, fix, issue-tracking, patch, web)
- <https://github.com/python-pillow/Pillow/commit/13ada41172142f2fd9f0906f615a00ea623a11ca> (fix, patch, web)
- <https://github.com/python-pillow/Pillow/releases/tag/12.3.0> (article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59204> (advisory, web)
- <https://github.com/python-pillow/Pillow> (package)
- <https://pypi.org/project/pillow> (package)
- <https://github.com/advisories/GHSA-vjc4-5qp5-m44j> (advisory)

## Sources

- CVE List: [CVE-2026-59204](https://www.cve.org/CVERecord?id=CVE-2026-59204), CVE Terms of Use, modified 2026-07-21
- GitHub Advisory Database: [GHSA-vjc4-5qp5-m44j](https://github.com/advisories/GHSA-vjc4-5qp5-m44j), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-59204](https://nvd.nist.gov/vuln/detail/CVE-2026-59204), Public domain, modified 2026-10-24
- PyPA Advisory Database: [PYSEC-2026-3496](https://osv.dev/vulnerability/PYSEC-2026-3496), CC-BY-4.0, modified 2026-07-23
- Bitnami Vulnerability Database: [BIT-PILLOW-2026-59204](https://osv.dev/vulnerability/BIT-PILLOW-2026-59204), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-59204 · Whole record: https://cve.day/CVE-2026-59204.json · Rebuilt by cve.day 2026-11-25T22:59:27.914Z
