Skip to main content
← All vulnerabilities
CVE-2026-112896GHSA-PCHR-8J38-3X4PBIT-PILLOW-2026-112896PYSEC-2026-4334

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 13.0.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated
  4. First seen by cve.now

Affected versions

  • python-pillow Pillow

    fixed in 13.0.0

  • pillowPyPI

    fixed in 13.0.0

  • pillowBitnami

    fixed in 13.0.0

References 3

GitHub · python-pillow/Pillow