Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Python | Pillow | >= 9.1.0, < 13.0.0 |
Related Weaknesses (CWE)
References
- https://github.com/python-pillow/Pillow/commit/13943c8f857b22f073d30f0ef9b725a0dPatch
- https://github.com/python-pillow/Pillow/releases/tag/13.0.0Release Notes
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-rfgq-q3w2-pmv2ExploitMitigationVendor Advisory
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-rfgq-q3w2-pmv2ExploitMitigationVendor Advisory
FAQ
What is CVE-2026-112898?
CVE-2026-112898 is a vulnerability with a CVSS score of 5.3 (MEDIUM). 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 cach...
How severe is CVE-2026-112898?
CVE-2026-112898 has been rated MEDIUM with a CVSS base score of 5.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-112898?
Check the references section above for vendor advisories and patch information. Affected products include: Python Pillow.