CVE-2026-112397

published 19 Oct 2026 · updated 19 Oct 2026

Pillow: Out-of-bounds access in _imagingmorph on a zero-width image

8.7HighCVSS 8.7EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

Pillow is a Python imaging library. Prior to 13.0.0, Pillow's ImageMorph.MorphOp.apply() can access memory before a row buffer for a zero-width image. PPM and PGM input can create an image with width zero, and the native morphology routine indexes outrow[width - 1] without rejecting that geometry. An attacker can supply such an image to an application that applies a morphology operation. This can crash the process. This issue is fixed in version 13.0.0.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
python-pillow<13.0.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-112397 severity on Zeptric[![CVE-2026-112397](https://zeptric.io/badge/cve/CVE-2026-112397.svg)](https://zeptric.io/cve/CVE-2026-112397)