VDB
Sign up
CRITICAL9.1

PYSEC-2026-4363

Quick fix

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

pip install --upgrade 'pillow>=13.0.0'

Details

Pillow is a Python imaging library. In versions through 12.3.0, the libtiff TIFF encoder can pass arguments to  TIFFSetField()  that do not match libtiff’s definition of the corresponding tag. When an application saves attacker-controlled image metadata through this encoder, crafted tag values can cause invalid memory reads, copying process memory into the encoded output or crashing the process. Applications that return the encoded output to an attacker can disclose that memory. The issue is reachable when re-saving compressed TIFF images and through certain conversions that preserve EXIF metadata into compressed TIFF output. This vulnerability 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