Independent & educational platform Not a government body. No link or affiliation with any government organisation. Made for learning only. Test only systems you own or are authorised to test. Become a Partner or Sponsor → Full disclaimer

CVE-2026-112898

medium

Pillow is a Python imaging library.

Vendor / product: Python — pillow

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
5.3
5.3 (CVSS v3.1)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Severity source: NVD CVSS v3.1 (nvd@nist.gov)
Timeline (UTC)
Published: 2026-10-19 22:17
Modified: 2026-10-28 16:17
NVD status: Modified
Last synced 13 hours ago
Verified against the source API 2026-10-28 16:34 UTC
Exploitation
Not listed in CISA KEV (as of last catalog sync)
Absence from KEV does not mean a CVE is not exploited. Exploitation status: unknown (no authoritative evidence in our sources).

Affected products

python / pillow ≥9.1.0 <13.0.0

Weakness classification (CWE)

Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.

Mitigation & advisories

Vendor advisory: https://github.com/python-pillow/Pillow/security/advisories/GHSA-rfgq-q3w2-pmv2
Vendor advisory: https://github.com/python-pillow/Pillow/security/advisories/GHSA-rfgq-q3w2-pmv2
Patch / mitigation: https://github.com/python-pillow/Pillow/commit/13943c8f857b22f073d30f0ef9b725a0d255f1a4
Patch / mitigation: https://github.com/python-pillow/Pillow/security/advisories/GHSA-rfgq-q3w2-pmv2
Patch / mitigation: https://github.com/python-pillow/Pillow/security/advisories/GHSA-rfgq-q3w2-pmv2

References

Data sources

NVD CVE API 2.0 — fetched 2026-10-28 16:34 UTC · record ↗

Learn the basics

Understanding CVEs and CVSS Scores

Related CVEs