---
id: CVE-2026-112395
title: 'Pillow tiled-TIFF decoder reads past tile buffer in copy4 (Unpack.c:1290)'
summary: >-
  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 str…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L'
cvssSource: cna
cwe:
  - CWE-122
vendor: python-pillow
product: Pillow
affected:
  - 'Pillow >= 8.2.0, < 13.0.0'
published: '2026-10-19'
updated: '2026-10-19'
sourceUpdated: '2026-10-19T20:59:15.098Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-112395'
references:
  - url: >-
      https://github.com/python-pillow/Pillow/security/advisories/GHSA-462x-pgg6-55fp
    label: >-
      https://github.com/python-pillow/Pillow/security/advisories/GHSA-462x-pgg6-55fp
  - url: >-
      https://github.com/python-pillow/Pillow/commit/76869efdbbf2ad7dccd7536520fb61b7a00ab61e
    label: >-
      https://github.com/python-pillow/Pillow/commit/76869efdbbf2ad7dccd7536520fb61b7a00ab61e
  - url: 'https://github.com/python-pillow/Pillow/releases/tag/13.0.0'
    label: 'https://github.com/python-pillow/Pillow/releases/tag/13.0.0'
tags:
  - cve.org
ingestedAt: '2026-10-19T21:43:56.136Z'
---

## Overview

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

- `Pillow >= 8.2.0, < 13.0.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
