CVE-2026-112395
Received Received - Intake

Heap Buffer Overflow in Pillow Image Library

Vulnerability report for CVE-2026-112395, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-10-19

Last updated on: 2026-10-19

Assigner: GitHub, Inc.

Description

Pillow is a Python imaging library. From 8.2.0 until 13.0.0, Pillow's tiled-TIFF decoder can read past the tile buffer while copying four-byte pixels. In _decodeTile, libtiff can return a tile allocation smaller than the required row stride multiplied by the tile length, and Pillow's stride-and-copy loop walks beyond that allocation. An attacker can supply a crafted tiled TIFF to an application that loads it. This can expose adjacent heap data in pixels or crash the process. This issue is fixed in version 13.0.0.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-10-19
Last Modified
2026-10-19
Generated
2026-10-20
AI Q&A
2026-10-20
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
python-pillow Pillow >= 8.2.0, < 13.0.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-122 A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

Pillow is a Python imaging library. From versions 8.2.0 to 13.0.0, its tiled-TIFF decoder has a flaw where it can read past the tile buffer while copying four-byte pixels. In the _decodeTile function, libtiff may return a tile allocation smaller than required, causing Pillow's loop to access memory outside the allocated buffer. This can expose adjacent heap data or crash the process.

Detection Guidance

Detecting this vulnerability requires checking the installed version of Pillow. Run: pip show Pillow. If the version is between 8.2.0 and 12.9.9, the system is vulnerable.

Impact Analysis

An attacker could exploit this by providing a specially crafted tiled TIFF file to an application using the vulnerable Pillow version. This might lead to information disclosure (exposing heap data) or denial-of-service (crashing the process). Applications processing untrusted TIFF files are at risk.

Mitigation Strategies

Upgrade Pillow to version 13.0.0 or later immediately. Use: pip install --upgrade Pillow. Avoid processing untrusted TIFF files until the upgrade is complete.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-112395. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart