8.8High

CVE-2026-112896Pillow: TIFF encoder ColorMap plane-size mismatch causes a heap out-of-bounds read

python-pillow Pillow Published: (29 days ago)

Description

Pillow is a Python imaging library. Prior to 13.0.0, Pillow's TIFF encoder can read beyond a ColorMap buffer when retained TIFF metadata has a plane size inconsistent with BitsPerSample. A small TIFF can be opened normally and then retain a crafted ColorMap that is reused when the image is saved. An application that re-encodes the attacker's TIFF with libtiff can trigger the out-of-bounds read. This can disclose heap memory in the output or crash the process. This issue is fixed in version 13.0.0.

Weakness (CWE): CWE-125

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
python pillow < 13.0.0
python-pillow Pillow < 13.0.0

Ubuntu fixes

  • USN-9064-1 Pillow vulnerabilities Ubuntu 26.10, 26.04, 24.04, 22.04, 20.04, 18.04, 16.04, 14.04 · 12.11.2026 · pillow

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* < 13.0.0