CVE-2026-112896

Pillow: TIFF encoder ColorMap plane-size mismatch causes a heap out-of-bounds read

Published Oct 19, 2026 CVSS 4.0 · 8.8 High EPSS < 1% KEV · Not listed
Description
Pillow is a Python imaging library. Prior to 13.0.0, Pillow's TIFF encoder can read beyond a ColorMap buffer when retained TIFF metadata has a plane size inconsistent with BitsPerSample. A small TIFF can be opened normally and then retain a crafted ColorMap that is reused when the image is saved. An application that re-encodes the attacker's TIFF with libtiff can trigger the out-of-bounds read. This can disclose heap memory in the output or crash the process. This issue is fixed in version 13.0.0.

Analysis

AI-generated

Technical impact

The CVE describes an out-of-bounds read in Pillow’s TIFF encoder caused by a ColorMap plane-size inconsistency with BitsPerSample. When a small TIFF is opened, Pillow retains a crafted ColorMap that is later reused during re-encoding. An attacker can trigger the buffer read, causing heap memory to be exposed in the output or the process to terminate. The weakness is a memory read vulnerability and is classified as CWE‑125.

Affected Systems

The vulnerability affects the Python Pillow imaging library. Any Pillow installation prior to version 13.0.0 is vulnerable. The issue was resolved in release 13.0.0, so any deployment still using Pillow 12.x or earlier must upgrade. No other products or vendors are listed.

Risk and Exploitability

The CVSS score of 8.8 indicates a high‑impact flaw. EPSS is not available, and the item is not listed in the CISA KEV catalog. The exploit requires an application to open and re‑encode a TIFF image that contains a malicious ColorMap. A remote attacker who can supply images to such an application can trigger the out‑of‑bounds read, potentially leaking sensitive heap data or causing a denial of service. The attack vector is likely remote via crafted image input delivered to a vulnerable service.

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 hardening change that fixes the mismatched ColorMap plane-size handling.
  • Ensure that all runtime environments, virtual environments, or containers use the updated Pillow library and that older versions cannot be imported inadvertently.
  • If an immediate upgrade cannot be performed, remove or sandbox the processing of TIFF files from untrusted sources, and consider rejecting such uploads entirely to prevent exploitation.

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

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-pchr-8j38-3x4p Pillow: TIFF encoder ColorMap plane-size mismatch causes a heap out-of-bounds read
History
Type Values Removed Values Added
First Time appeared Python
Python pillow
CPEs cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*
Vendors & Products Python
Python pillow
Metrics cvssV3_1

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

cvssV3_1

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

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Important

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. Prior to 13.0.0, Pillow's TIFF encoder can read beyond a ColorMap buffer when retained TIFF metadata has a plane size inconsistent with BitsPerSample. A small TIFF can be opened normally and then retain a crafted ColorMap that is reused when the image is saved. An application that re-encodes the attacker's TIFF with libtiff can trigger the out-of-bounds read. This can disclose heap memory in the output or crash the process. This issue is fixed in version 13.0.0.
Title Pillow: TIFF encoder ColorMap plane-size mismatch causes a heap out-of-bounds read
Weaknesses CWE-125
References
Metrics cvssV4_0

{'score': 8.8, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 20, 2026, 1:55 PM
Reserved
Oct 19, 2026, 8:16 PM
Status
Analyzed
Published
Oct 19, 2026, 10:17 PM
Modified
Oct 27, 2026, 2:55 PM
Severity
Important
Public date
Oct 19, 2026, 9:59 PM