High severity7.5NVD Advisory· Published Oct 19, 2026· Updated Oct 27, 2026
CVE-2026-112397
CVE-2026-112397
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
PillowPyPI | < 13.0.0 | 13.0.0 |
Affected products
9- osv-coords7 versionspkg:rpm/almalinux/python3-pillow-docpkg:rpm/almalinux/python3-pillow-develpkg:rpm/almalinux/python3-pillowpkg:rpm/almalinux/python3-pillow-tkpkg:rpm/opensuse/python-Pillow&distro=openSUSE%20Leap%2016.1pkg:bitnami/pillowpkg:rpm/opensuse/python-Pillow&distro=openSUSE%20Leap%2016.0
< 5.1.1-33.el8_10+ 6 more
- (no CPE)range: < 5.1.1-33.el8_10
- (no CPE)range: < 5.1.1-33.el8_10
- (no CPE)range: < 5.1.1-33.el8_10
- (no CPE)range: < 5.1.1-33.el8_10
- (no CPE)range: < 11.3.0-160100.3.1
- (no CPE)range: < 13.0.0
- (no CPE)range: < 11.3.0-160000.9.1
- Range: <13.0.0
Patches
Vulnerability mechanics
References
5- github.com/python-pillow/Pillow/commit/18f7c0dfee93063c51db6ed0ca8c4da2999dcb64nvdPatchWEB
- github.com/python-pillow/Pillow/security/advisories/GHSA-58r4-6rv3-gfh8nvdExploitVendor AdvisoryWEB
- github.com/advisories/GHSA-58r4-6rv3-gfh8ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-112397ghsaADVISORY
- github.com/python-pillow/Pillow/releases/tag/13.0.0nvdRelease NotesWEB
News mentions
1- Pillow: 25 Vulnerabilities Disclosed Together, Ranging from Critical to MediumVypr Intelligence · Oct 19, 2026