# CVE-2026-112898: Pillow: Image.quantize() with empty palette leaks uninitialized stack memory

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-10-19 · Modified: 2026-10-28
- Aliases: DEBIAN-CVE-2026-112898, GHSA-rfgq-q3w2-pmv2, CGA-4jp3-q8gv-52rq, CGA-56c6-8x2w-gvrj, CGA-fxqg-7g6p-wv2w, CGA-g9wv-3p7x-xphp, CGA-4vjg-qc4h-8v4q, CGA-9xxf-58vx-6787, CGA-ffmh-pjf5-cmh3, CGA-j6r7-2vv3-rr4w, CGA-3m4p-8qgr-54xr, CGA-42jx-pp2g-2c7w, CGA-4gcx-882v-33gr, CGA-533w-267p-9jpc, CGA-8jj5-j224-v37p, CGA-8p2f-244x-5rgr, CGA-95h5-9g7x-75rc, CGA-g45c-533v-2vg5, CGA-gpg8-4f69-p9q8, CGA-h7jj-h46w-3v9q, CGA-j7f6-xj3p-m29h, CGA-mvh8-wqjr-xw36, CGA-r3r6-gh2r-qjj5, CGA-r65v-4r4v-3jgq, CGA-v4x8-x8c7-pcgf, CGA-wwcf-qc8m-q357, CGA-xqfq-5crm-jvh5, CGA-3qmc-287p-g2p5, CGA-8848-w9hf-j95p, CGA-cf88-hg5f-v7vw, CGA-cp26-wrjw-v65c, CGA-vqjq-2f79-gjhf, CGA-38c4-5p92-f2w2, CGA-3rqc-mh9r-wjqf, CGA-694v-g6mh-9fxg, CGA-6w22-wxpw-x9hj, CGA-gf74-8w3j-jjw4, CGA-mghr-hg72-g4w4, CGA-pgpw-fhmq-gx8c, CGA-phcr-h6mr-wxhf, CGA-x8jh-56mc-vv78, CGA-89rm-p2mh-329x, UBUNTU-CVE-2026-112898, CGA-r64x-9r69-h98j, CGA-m6v7-28jq-c5vr, BIT-pillow-2026-112898
- Record: https://cvemate.com/vulnerability/CVE-2026-112898 · JSON: https://cvemate.com/vulnerability/CVE-2026-112898/json

## Description

```text
Pillow is a Python imaging library. From 9.1.0 until 13.0.0, Pillow can disclose uninitialized stack memory when Image.quantize() uses an empty palette. ImagingPaletteCacheUpdate() leaves a local cache array uninitialized when the palette has zero entries, and the conversion path emits those bytes as output pixel indices. An attacker who controls the palette image can obtain stack contents from a returned PNG or GIF. This can disclose addresses and stack-canary data without an out-of-bounds access, memory corruption, or process crash. This issue is fixed in version 13.0.0.
```

## Signals

- CVSS: 6.9 medium (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
- EPSS: 0.46%, percentile 41.623%, 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 36)

- chainguard apache-beam-python-3.12-sdk (Chainguard): All versions (No fix recorded) \| \< 2.77.0-r5
- chainguard mlflow (Chainguard): All versions (No fix recorded) \| \< 3.17.2-r2
- chainguard mlflow-fips (Chainguard): All versions (No fix recorded) \| \< 3.17.2-r3
- chainguard nemo-gym (Chainguard): All versions (No fix recorded) \| \< 0.5.0\_rc0\_git20260729-r6
- chainguard nemo-rl-cuda-13.0-automodel (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r11
- chainguard nemo-rl-cuda-13.0-mcore (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r11
- chainguard nemo-rl-cuda-13.0-sglang (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r11
- chainguard nemo-rl-cuda-13.0-vllm (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r11
- chainguard nemo-skills (Chainguard): All versions (No fix recorded) \| \< 0.7.0\_git20260911-r5
- chainguard open-webui (Chainguard): \< 0.12.3-r6 \| All versions (No fix recorded)
- chainguard openstack-horizon-2025.2 (Chainguard): All versions (No fix recorded) \| \< 25.5.2\_git20260914-r12
- chainguard py3.10-pillow (Chainguard): All versions (No fix recorded)
- chainguard py3.10-pytorch-cuda-12.6 (Chainguard): All versions (No fix recorded)
- chainguard py3.10-pytorch-cuda-13.0 (Chainguard): All versions (No fix recorded)
- chainguard py3.10-pytorch-cuda-13.2 (Chainguard): All versions (No fix recorded)
- chainguard py3.10-vllm-cuda-12.4 (Chainguard): All versions (No fix recorded)
- chainguard py3.11-pillow (Chainguard): All versions (No fix recorded) \| \< 13.0.0-r0
- chainguard py3.11-pytorch-cuda-13.0 (Chainguard): All versions (No fix recorded) \| \< 2.14.1-r2
- chainguard py3.12-pillow (Chainguard): All versions (No fix recorded) \| \< 13.0.0-r0
- chainguard py3.12-pytorch-cuda-13.0 (Chainguard): All versions (No fix recorded) \| \< 2.14.1-r2

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-rfgq-q3w2-pmv2>
- <https://github.com/python-pillow/Pillow/commit/13943c8f857b22f073d30f0ef9b725a0d255f1a4>
- <https://github.com/python-pillow/Pillow/releases/tag/13.0.0>
- <https://security-tracker.debian.org/tracker/CVE-2026-112898>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112898>
- <https://github.com/python-pillow/Pillow>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112898.json>
- <https://ubuntu.com/security/CVE-2026-112898>
- <https://www.cve.org/CVERecord?id=CVE-2026-112898>
- <https://ubuntu.com/security/notices/USN-9064-1>

---

Data as of 2026-12-05T06:51:42.374Z. 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
