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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 12.3.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-07-14 · Modified: 2026-07-21
- Aliases: GHSA-vjc4-5qp5-m44j, BIT-pillow-2026-59204, PYSEC-2026-3496, UBUNTU-CVE-2026-59204, DEBIAN-CVE-2026-59204, CGA-57fj-pf32-7qxw, CGA-5w93-jg6q-8gm6, CGA-cr4v-jxq9-2rj2, CGA-cwhj-4v2j-8h83, CGA-ffmg-5wqw-j4pp, CGA-gcm2-c2gw-cwgx, CGA-gh52-cqc9-mh37, CGA-h4ff-hhv8-23gv, CGA-jc7g-j3mv-4988, CGA-jj3c-32cg-vw4v, CGA-jr5w-33q8-58hg, CGA-vg5g-pjm6-fjhr, CGA-vw27-fc8g-3pxc, CGA-wggg-xpp8-59hm, CGA-x4h3-5m8c-64c2, CGA-22gq-3vvx-48hq, CGA-42p6-23cc-9557, CGA-46x2-54fj-5r2w, CGA-4jpw-68xx-fwhx, CGA-4v7v-g92h-5w3m, CGA-8fv3-52ff-pfp4, CGA-8h62-5chj-7643, CGA-c5g4-r6rr-fx4f, CGA-c74f-mwqq-mvjr, CGA-f725-623g-phj9, CGA-jm4m-58r5-6q9j, CGA-mqw6-4m9j-vr63, CGA-mxmj-c94v-2j76, CGA-rfv6-xwwh-g73w, CGA-x32x-rpq4-77m6, CGA-xjmj-4qmx-p5f2
- Record: https://cvemate.com/vulnerability/CVE-2026-59204 · JSON: https://cvemate.com/vulnerability/CVE-2026-59204/json

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

## Signals

- CVSS: 8.7 high (v4.0, CVE.org) 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
- EPSS: 0.385%, percentile 34.741%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 26)

- chainguard label-studio (Chainguard): \< 1.23.0-r11
- chainguard lmcache-cuda-12.8 (Chainguard): \< 0.5.3-r0
- chainguard mlflow (Chainguard): \< 3.14.0-r2 \| \< 3.16.0-r0
- chainguard open-webui (Chainguard): \< 0.11.0-r0 \| \< 0.10.2-r1 \| All versions (No fix recorded)
- chainguard openstack-horizon-2025.2 (Chainguard): \< 25.5.2\_git20260617-r4
- chainguard openstack-horizon-2025.2-fips (Chainguard): \< 25.5.2\_git20260617-r5
- chainguard openstack-horizon-2026.1 (Chainguard): \< 25.7.3\_git20260630-r2
- chainguard openstack-horizon-2026.1-fips (Chainguard): \< 25.7.3\_git20260630-r2
- chainguard superset-6.0 (Chainguard): \< 6.0.0-r13
- chainguard superset-6.1 (Chainguard): \< 6.1.0-r6
- chainguard superset-6.1-iamguarded-compat (Chainguard): All versions (No fix recorded)
- chainguard superset-fips-6.1 (Chainguard): \< 6.1.0-r5
- chainguard tensorflow-gpu-jupyter (Chainguard): \< 2.21.0-r7
- chainguard text-generation-inference (Chainguard): \< 3.3.7-r20
- chainguard tritonserver-backend-vllm-cuda-13.0 (Chainguard): \< 25.11-r11
- wolfi mlflow (Wolfi): \< 3.14.0-r2 \| \< 3.16.0-r0
- wolfi open-webui (Wolfi): \< 0.11.0-r0 \| \< 0.10.2-r1 \| All versions (No fix recorded)
- wolfi superset-6.0 (Wolfi): \< 6.0.0-r13
- wolfi superset-6.1 (Wolfi): \< 6.1.0-r6
- wolfi superset-6.1-iamguarded-compat (Wolfi): All versions (No fix recorded)

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-vjc4-5qp5-m44j>
- <https://github.com/python-pillow/Pillow/pull/9704>
- <https://github.com/python-pillow/Pillow/commit/13ada41172142f2fd9f0906f615a00ea623a11ca>
- <https://github.com/python-pillow/Pillow/releases/tag/12.3.0>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59204>
- <https://github.com/python-pillow/Pillow>
- <https://pypi.org/project/pillow>
- <https://github.com/advisories/GHSA-vjc4-5qp5-m44j>
- <https://ubuntu.com/security/CVE-2026-59204>
- <https://www.cve.org/CVERecord?id=CVE-2026-59204>
- <https://security-tracker.debian.org/tracker/CVE-2026-59204>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59204.json>
- <https://ubuntu.com/security/notices/USN-8999-1>

---

Data as of 2026-12-06T06:08:58.037Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
