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

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- 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.46%, higher than 41% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-19T22:04:23.462Z
- Modified: 2026-10-29T10:45:10.157Z
- Also known as: GHSA-rfgq-q3w2-pmv2, BIT-PILLOW-2026-112898
- Weaknesses: CWE-457
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- python-pillow Pillow: >= 9.1.0, < 13.0.0
- pillow (PyPI): from 9.1.0 before 13.0.0
- python pillow: from 9.1.0 before 13.0.0
- pillow (Bitnami): from 9.1.0 before 13.0.0

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-rfgq-q3w2-pmv2> (exploit, advisory, mitigation, vendor-advisory, web)
- <https://github.com/python-pillow/Pillow/commit/13943c8f857b22f073d30f0ef9b725a0d255f1a4> (fix, patch, web)
- <https://github.com/python-pillow/Pillow/releases/tag/13.0.0> (article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112898> (advisory, web)
- <https://github.com/python-pillow/Pillow> (package)

## Sources

- CVE List: [CVE-2026-112898](https://www.cve.org/CVERecord?id=CVE-2026-112898), CVE Terms of Use, modified 2026-10-28
- GitHub Advisory Database: [GHSA-rfgq-q3w2-pmv2](https://github.com/advisories/GHSA-rfgq-q3w2-pmv2), CC-BY-4.0, modified 2026-10-26
- NVD: [CVE-2026-112898](https://nvd.nist.gov/vuln/detail/CVE-2026-112898), Public domain, modified 2026-10-28
- Bitnami Vulnerability Database: [BIT-PILLOW-2026-112898](https://osv.dev/vulnerability/BIT-PILLOW-2026-112898), Apache-2.0, modified 2026-10-29

---

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