Advisory

PYSEC-2026-4329

Also known as: BIT-pillow-2026-112397, CVE-2026-112397, GHSA-58r4-6rv3-gfh8

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2026-10-19 22:17 UTC
Modified
2026-10-28 11:10 UTC

Affected packages and fixes

pillow

PyPI · All systems

Affected

  • introduced 0, fixed 13.0.0 (ecosystem)

Fixed versions

13.0.0

Fix

  • Fixed version 13.0.0
    pip install --upgrade pillow==13.0.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences