CVE-2026-112898

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*

History

28 Oct 2026, 16:17

Type Values Removed Values Added
References () https://github.com/python-pillow/Pillow/security/advisories/GHSA-rfgq-q3w2-pmv2 - Exploit, Mitigation, Vendor Advisory () https://github.com/python-pillow/Pillow/security/advisories/GHSA-rfgq-q3w2-pmv2 - Exploit, Mitigation, Vendor Advisory

27 Oct 2026, 14:55

Type Values Removed Values Added
CPE cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*
First Time Python
Python pillow
References () https://github.com/python-pillow/Pillow/commit/13943c8f857b22f073d30f0ef9b725a0d255f1a4 - () https://github.com/python-pillow/Pillow/commit/13943c8f857b22f073d30f0ef9b725a0d255f1a4 - Patch
References () https://github.com/python-pillow/Pillow/releases/tag/13.0.0 - () https://github.com/python-pillow/Pillow/releases/tag/13.0.0 - Release Notes
References () https://github.com/python-pillow/Pillow/security/advisories/GHSA-rfgq-q3w2-pmv2 - () https://github.com/python-pillow/Pillow/security/advisories/GHSA-rfgq-q3w2-pmv2 - Exploit, Mitigation, Vendor Advisory
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.3

19 Oct 2026, 22:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-10-19 22:17

Updated : 2026-10-28 16:17


NVD link : CVE-2026-112898

Mitre link : CVE-2026-112898

CVE.ORG link : CVE-2026-112898


JSON object : View

Products Affected

python

  • pillow
CWE
CWE-457

Use of Uninitialized Variable