CVE-2026-112902

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

Published Nov 5, 2026 CVSS 4.0 · 8.3 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The Pillow library’s libtiff TIFF encoder can forward tag values that do not match the expected type when calling TIFFSetField, which may cause invalid memory reads. These reads can copy arbitrary process memory into the encoded TIFF output, leading to disclosure of sensitive data, or trigger a crash of the application. If an attacker supplies crafted image metadata that the application re‑saves and returns to the user, memory contents can be leaked and the service can be destabilized.

Affected Systems

Python Pillow images processed by applications that handle TIFF images are affected when using any Pillow version up to and including 12.3.0. Versions 13.0.0 and later contain the fix and are not vulnerable.

Risk and Exploitability

With a CVSS score of 8.3 the vulnerability is considered high severity. EPSS information is not available, and the issue is not listed in the CISA KEV catalog. The attack most likely requires the attacker to supply a malicious image to an application that re‑encodes and serves it back. Successful exploitation would allow memory disclosure and potentially cause a denial‑of‑service through process crash.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Pillow to version 13.0.0 or later
  • If an upgrade is not immediately possible, disable the libtiff encoder or filter image input to reject unsupported TIFF tags
  • Apply input validation to reject or sanitize metadata tags that are not defined by libtiff or exceed normal size limits

Generated by OpenCVE AI on November 5, 2026 at 21:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-xvh5-g6gv-559v Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Python
Python pillow
CPEs cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*
Vendors & Products Python
Python pillow
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H'}

Type Values Removed Values Added
First Time appeared Python-pillow
Python-pillow pillow
Vendors & Products Python-pillow
Python-pillow pillow
Type Values Removed Values Added
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.
Title Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags
Weaknesses CWE-686
References
Metrics cvssV4_0

{'score': 8.3, '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'}

Weaknesses
  • CWE-686

    Function Call With Incorrect Argument Type

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 9, 2026, 5:42 PM
Reserved
Oct 19, 2026, 8:16 PM
Status
Analyzed
Published
Nov 5, 2026, 9:18 PM
Modified
Nov 10, 2026, 6:36 PM