Skip to main content
← All vulnerabilities
CVE-2026-112404GHSA-C6HW-5GRF-FF96BIT-PILLOW-2026-112404

Pillow: OOB read in TiffDecode.c tile and RGBA paths leaks heap memory into pixels

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. From 8.1.0 until 13.0.0, Pillow's TIFF tile and RGBA decode paths can read beyond row data produced by libtiff. In _decodeTile and the RGBA unpacker path, when Pillow and libtiff interpret duplicated PhotometricInterpretation or BitsPerSample tags differently, Pillow does not verify that the required input row fits inside the row libtiff produced, while the strip path has this validation. Loading pixels from such a crafted TIFF can expose adjacent heap data in output pixels 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

Affected versions

  • python-pillow Pillow

    From 8.1.0 · fixed in 13.0.0

  • pillowPyPI

    From 8.1.0 · fixed in 13.0.0

  • pillowBitnami

    From 8.1.0 · fixed in 13.0.0

References 3

GitHub · python-pillow/Pillow