---
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'
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-10-28T15:24:42.550709Z'
exploitAvailable: true
published: '2026-10-19'
updated: '2026-10-28'
sourceUpdated: '2026-10-28T15:24:49.805Z'
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'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-112395'
  - url: 'https://github.com/python-pillow/Pillow'
  - url: 'https://github.com/advisories/GHSA-462x-pgg6-55fp'
tags:
  - cve.org
  - exploit-available
  - osv
  - pip
  - ghsa
epss: 0.00514
epssPercentile: 0.43702
aliases:
  - GHSA-462x-pgg6-55fp
  - BIT-pillow-2026-112395
ecosystem: pip
patched:
  - pillow 13.0.0
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.

## Package advisory (CVE-2026-112395)

Affected packages:

- `pillow >= 8.2.0, < 13.0.0`

Patched in:

- `pillow 13.0.0`

Source: https://osv.dev/vulnerability/GHSA-462x-pgg6-55fp
