Vulnerability · Published Oct 19, 2026 · Assigned by GitHub_M

CVE-2026-112395Pillow tiled-TIFF decoder reads past tile buffer in copy4 (Unpack.c:1290)

Medium 6.5

In plain English

A medium-severity heap buffer overflow in Pillow from python-pillow. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.5%top 56.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12pillowno fix listedDEBIAN-CVE-2026-112395
Debian:13pillowno fix listedDEBIAN-CVE-2026-112395
Debian:14pillowno fix listedDEBIAN-CVE-2026-112395
PyPIpillow13.0.0GHSA-462x-pgg6-55fp
Ubuntu:22.04:LTSpillowno fix listedUBUNTU-CVE-2026-112395
Ubuntu:24.04:LTSpillowno fix listedUBUNTU-CVE-2026-112395
Ubuntu:26.04:LTSpillowno fix listedUBUNTU-CVE-2026-112395
Ubuntu:26.10pillowno fix listedUBUNTU-CVE-2026-112395

Affected products (as reported)

VendorProductVersions
python-pillow Pillow >= 8.2.0, < 13.0.0

Weakness: CWE-122 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

References