---
id: CVE-2026-112405
title: 'Pillow: NULL pointer dereference in Image.merge via an unvalidated band 0'
summary: >-
  Pillow is a Python imaging library. From 12.0.0 until 13.0.0, Pillow's
  Image.merge() can dereference a null image8 plane. Validation skips the first
  input band, allowing a 32-bit integer or floating-point image backed by
  image32 storage …
severity: high
cvss: 8.7
cvssVector: 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'
cvssSource: cna
cwe:
  - CWE-476
vendor: python-pillow
product: Pillow
affected:
  - 'Pillow >= 12.0.0, < 13.0.0'
published: '2026-10-19'
updated: '2026-10-19'
sourceUpdated: '2026-10-19T21:29:53.515Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-112405'
references:
  - url: >-
      https://github.com/python-pillow/Pillow/security/advisories/GHSA-cp9v-662q-vvx9
    label: >-
      https://github.com/python-pillow/Pillow/security/advisories/GHSA-cp9v-662q-vvx9
  - url: >-
      https://github.com/python-pillow/Pillow/commit/b6ee66e8b2c2c0932bdf65f963268d9f2927ef86
    label: >-
      https://github.com/python-pillow/Pillow/commit/b6ee66e8b2c2c0932bdf65f963268d9f2927ef86
  - 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.115Z'
---

## Overview

Pillow is a Python imaging library. From 12.0.0 until 13.0.0, Pillow's Image.merge() can dereference a null image8 plane. Validation skips the first input band, allowing a 32-bit integer or floating-point image backed by image32 storage to be merged as a narrower multiband image. A crafted IPTC file can reach this path when an application opens and loads it, or a caller can invoke Image.merge() directly with such a first band. This causes a native process crash. This issue is fixed in version 13.0.0.

## Affected

- `Pillow >= 12.0.0, < 13.0.0`

## Remediation

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