# CVE-2026-112902 - Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags

DevFeed: [CVE-2026-112902 - Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags](<https://devfeed.tech/articles/cve-2026-112902-pillow-memory-disclosure-and-segfault-in-libtiff-encoder-via-crafted-tiff-tags-119642.md>)

Original publisher: [Read original article](<https://cvefeed.io/vuln/detail/CVE-2026-112902>)

Author: CVEFEED.io; github.com

Published: 2026-11-05T21:18:36Z

Content type: news

Language: en

Sources: [Latest High/Critical Vulnerabilitiy Feed](<https://devfeed.tech/sources/latest-high-critical-vulnerabilitiy-feed.md>)

Topics: [Library](<https://devfeed.tech/topics/library.md>), [Memory Safety](<https://devfeed.tech/topics/memory-safety.md>), [Image](<https://devfeed.tech/topics/image.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [application](<https://devfeed.tech/tags/application.md>), [cve](<https://devfeed.tech/tags/cve.md>), [cve-2026-112902](<https://devfeed.tech/tags/cve-2026-112902.md>), [disclosure](<https://devfeed.tech/tags/disclosure.md>), [image](<https://devfeed.tech/tags/image.md>), [memory](<https://devfeed.tech/tags/memory.md>), [metadata](<https://devfeed.tech/tags/metadata.md>), [pillow](<https://devfeed.tech/tags/pillow.md>), [python](<https://devfeed.tech/tags/python.md>), [vulnerability](<https://devfeed.tech/tags/vulnerability.md>)

## AI overview

Pillow versions through 12.3.0 can pass mismatched arguments to libtiff's TIFFSetField() when encoding crafted TIFF tags. Saving attacker-controlled metadata can cause invalid memory reads, which may copy process memory into the encoded output or crash the process. Memory disclosure is possible when an application returns that output to an attacker. The issue can be reached when re-saving compressed TIFFs and through certain conversions that preserve EXIF metadata into compressed TIFF output. The stated fix is Pillow 13.0.0.

## Source excerpt

CVE ID :CVE-2026-112902 Published : Nov. 5, 2026, 9:18 p.m. | 2 hours, 4 minutes ago 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. Severity: 8.3 | HIGH Visit the link for more details, such as CVSS details, affected products, timeline, and more...