# CVE-2026-59198: Pillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-14 · Modified: 2026-07-14
- Aliases: GHSA-fj7v-r99m-22gq, BIT-pillow-2026-59198, PYSEC-2026-3494, UBUNTU-CVE-2026-59198, USN-8690-1, DEBIAN-CVE-2026-59198, CGA-3c5r-223h-prwx, CGA-4f5x-8g6h-6rcr, CGA-63rm-v8g6-m6cm, CGA-86j6-jrg3-gw7x, CGA-c46v-ffrw-hwfx, CGA-fxm5-32cg-4fxm, CGA-gghj-mv5q-cch5, CGA-h9q9-wv62-3rrj, CGA-m6h9-hmrx-6g2c, CGA-mrj6-p287-jcfg, CGA-pf7j-j6h9-m3c2, CGA-wg5x-p3fx-q93h, CGA-x4j7-px94-hc3r, CGA-xf9f-53h6-q9f7, CGA-xq33-vjhj-4vw7, CGA-4p6x-w38p-mjjg, CGA-4wmc-42qq-vwwh, CGA-69v3-5wp6-48x9, CGA-9fwp-qwcf-74hm, CGA-9qr7-9gpf-r5m4, CGA-9vf4-4rwf-639m, CGA-c29v-3jwg-63mh, CGA-c4xr-mx4v-g526, CGA-gc8c-ccx3-78qh, CGA-h59p-853r-r44x, CGA-hxfw-vvr7-3fr9, CGA-m5j4-xjgw-c6fg, CGA-m5jv-5xrw-gxgm, CGA-m684-2fr9-p23m, CGA-pvwm-c39w-49rq, CGA-q4hm-rppg-pmrv
- Record: https://cvemate.com/vulnerability/CVE-2026-59198 · JSON: https://cvemate.com/vulnerability/CVE-2026-59198/json

## Description

```text
Pillow is a Python imaging library. From 5.2.0 until 12.3.0, Pillow's TGA RLE encoder reads past its packed row buffer when saving a mode 1 image with TGA RLE compression, allowing adjacent process heap bytes to be copied into the generated TGA file. This issue is fixed in version 12.3.0.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.313%, percentile 26.058%, as of 2026-12-04
- 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-fj7v-r99m-22gq>
- <https://github.com/python-pillow/Pillow/pull/9709>
- <https://github.com/python-pillow/Pillow/commit/eada3cbd7fb9963ee90673fb7b5270124a0d5f4b>
- <https://github.com/python-pillow/Pillow/releases/tag/12.3.0>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59198>
- <https://github.com/python-pillow/Pillow>
- <https://pypi.org/project/pillow>
- <https://github.com/advisories/GHSA-fj7v-r99m-22gq>
- <https://ubuntu.com/security/CVE-2026-59198>
- <https://www.cve.org/CVERecord?id=CVE-2026-59198>
- <https://ubuntu.com/security/notices/USN-8690-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-59198>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59198.json>

---

Data as of 2026-12-05T05:33:13.846Z. 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
