VDB

CVE-2026-112898

CVE-2026-112898 PUBLISHED CVSS 6.9 MEDIUM

Pillow: Image.quantize() with empty palette leaks uninitialized stack memory

Reported by github_m · Published October 19, 2026

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
py3-pytorch-cuda-13.0Chainguard2.14.1-r2
nemo-gymChainguard0.5.0_rc0_git20260729-r6
py3-pillowChainguard13.0.0-r0
apache-beam-python-3.12-sdkChainguard2.77.0-r5
openstack-horizon-2025.2Chainguard25.5.2_git20260914-r12
open-webuiChainguard0.12.3-r6
pillowpython13.0.0

Risk scores

CVSS 4.0
6.9
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

Affected products

VendorProductVersions
python-pillowPillow>= 9.1.0, < 13.0.0
chainguardpy3-pytorch-cuda-13.00
chainguardnemo-gym0
chainguardpy3-pillow0
chainguardapache-beam-python-3.12-sdk0
chainguardopenstack-horizon-2025.20
chainguardopen-webui0
python-pillowPillow9.1.0
chainguardnemo-rl-cuda-13.00
wolfipy3-pillow0
wolfiopen-webui0
chainguardsuperset-fips-6.10
PyPIPillow9.1.0

Timeline

  • Oct 19, 2026 CVE Published
  • Oct 20, 2026 EPSS Score (7 in total, the first dated here)
  • Oct 20, 2026 Coalition ESS Score
  • Oct 21, 2026 CVE Updated
  • Oct 30, 2026 Security Advisory

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-112898
vulnetix vdb fixes CVE-2026-112898

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-112898/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›