VDB
Sign up
HIGH7.1

PYSEC-2026-4334

Quick fix

PYSEC-2026-4334 — pillow: upgrade to the fixed version with the command below.

pip install --upgrade 'pillow>=13.0.0'

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/pillow
Introduced in: 0Fixed in: 13.0.0
Fixpip install --upgrade 'pillow>=13.0.0'

References