{"id":"CVE-2026-112898","published":"2026-10-19T22:04:23Z","modified":"2026-10-28T15:15:44Z","title":"Pillow: Image.quantize() with empty palette leaks uninitialized stack memory","vendor":"python-pillow","product":"Pillow","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00419,"percentile":0.27898,"provenance":"source"},"cwes":[{"id":"CWE-457","name":"Use of Uninitialized Variable"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-rfgq-q3w2-pmv2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/commit/13943c8f857b22f073d30f0ef9b725a0d255f1a4","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":10.4,"factors":[{"name":"EPSS percentile","points":5.58},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":[">= 9.1.0, < 13.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-28T15:15:33.855924Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Pillow","vulnerableRanges":[">=9.1.0, <13.0.0"],"patched":["13.0.0"],"from":["GHSA-rfgq-q3w2-pmv2"],"provenance":"source"}],"summary":{"text":"Pillow, the Python imaging library, has a flaw in Image.quantize() where an empty palette causes ImagingPaletteCacheUpdate() to leave a local cache array uninitialized, and those stale bytes are emitted as output pixel indices in the Pillow releases from 9.1.0 up to 13.0.0. An attacker who controls the palette image and can obtain the resulting PNG or GIF output can recover uninitialized stack contents, which may reveal addresses and stack-canary data without causing a crash or memory corruption.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:54:40Z"},"euvd":{"id":"EUVD-2026-104660","exploited":false,"provenance":"source"}}