Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags

State
Published
Severity
8.3 High
Published
Nov 5, 2026
Updated
Nov 9, 2026
Reserved
Oct 19, 2026

Read the record on cve.org

Description

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.

ProductVersions
Pillow python-pillow< 13.0.0 Affected

Weaknesses

  • CWE-686 Function Call With Incorrect Argument Type

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.