CVE-2026-112395

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

Published Oct 19, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The Pillow tiled‑TIFF decoder copies four‑byte pixels without checking that the tile buffer is large enough. When libtiff allocates a smaller buffer, the stride‑and‑copy loop walks past the end of the allocation, causing an out‑of‑bounds read. The read can leak adjacent heap data or trigger a crash, compromising confidentiality or availability.

Affected Systems

The vulnerability affects the Pillow imaging library distributed as the python‑pillow package. Libraries numbered 8.2.0 through 12.9.x are vulnerable; the bug is fixed in Pillow 13.0.0 and later.

Risk and Exploitability

Severity is moderate with a CVSS score of 6.5. Exploitation likelihood is not quantified in EPSS, and the issue is not listed in CISA KEV. The CVE states that an attacker can supply a crafted TIFF to an application that loads it, which can lead to data exposure or a crash. The likely attack vector is the image loading process; however, the data does not explicitly state whether exploitation would occur remotely or locally, so that is inferred based on the context.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Pillow to version 13.0.0 or later to apply the fix.
  • Ensure that the application does not load TIFF files from untrusted sources, or validate incoming images before processing.
  • If immediate upgrade is not possible, isolate image processing in a sandboxed environment and monitor for unexpected crashes.

Generated by OpenCVE AI on October 20, 2026 at 06:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-462x-pgg6-55fp Pillow tiled-TIFF decoder reads past tile buffer in copy4 (Unpack.c:1290)
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', '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
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. 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.
Title Pillow tiled-TIFF decoder reads past tile buffer in copy4 (Unpack.c:1290)
Weaknesses CWE-122
References
Metrics cvssV3_1

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 28, 2026, 3:24 PM
Reserved
Oct 19, 2026, 4:58 PM
Status
Modified
Published
Oct 19, 2026, 9:17 PM
Modified
Oct 28, 2026, 4:17 PM
Severity
Moderate
Public date
Oct 19, 2026, 8:59 PM