Impact
The vulnerability allows uninitialized stack data to be included in output PNG or GIF files generated by Pillow’s Image.quantize() when an empty palette is supplied. The leaked data can reveal stack addresses and canary values without causing memory corruption or a crash. This represents an information disclosure rather than an immediate denial of service or code execution flaw.
Affected Systems
Python-Pillow versions 9.1.0 through 12.x.x are affected. The issue exists in the Pillow library used in Python applications that invoke Image.quantize() with an empty palette. The fix was incorporated in Pillow 13.0.0.
Risk and Exploitability
The CVSS score of 6.9 denotes moderate severity. The EPSS score of 0.00291 indicates a very low but non‑zero probability of exploitation, corresponding to roughly 0.3% of vulnerability exploitation chances. The vulnerability is not listed in the CISA KEV catalog. Attackers can exploit it by supplying a crafted palette image to quantize(), making this a local or remote file‑processing risk depending on the configuration of the hosting service. The absence of out‑of‑bounds access limits the exploit to data disclosure.
OpenCVE Enrichment
Github GHSA