Shellfeed logo Shellfeed

CVE-2026-112896 · HIGH

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

EPSS: 0.5% probability of exploitation in the next 30 days (percentile 41.6).

Details

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.

Severity

HIGH — vector CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N

Affected packages

  • PyPI pillow [0 – 13.0.0]
  • GIT github.com/python-pillow/pillow [0 – 293218ad059d994baf1777d882911bed6a49704a]

References