CVE-2026-112392 Pillow: NULL dereference in ImagingExpand via rank filters on zero-size images
An attacker can cause a native process crash in Pillow by supplying a zero-size image to rank-based filters, leading to a null pointer dereference.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-112392?
CVE-2026-112392 is a high-severity vulnerability in Python Pillow, published on 19 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Pillow is a Python imaging library. Prior to 13.0.0, Pillow's rank-based filters can dereference invalid image storage for a zero-size image. ImagingExpand() allocates a non-empty output and then faults while replicating edges by reading the first pixel from empty input storage; ImagingRankFilter is never reached. An attacker can supply or cause creation of a zero-size image to an application that applies a rank, median, minimum, or maximum filter. This causes a native process crash. This issue is fixed in version 13.0.0.
Weakness: CWE-476
Which versions are affected by CVE-2026-112392?
4 open source packages ship an affected version, including pillow and Pillow. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
pillow Bitnami | All versions | 13.0.0 |
pillow PyPI | All versions | 13.0.0 |
pillow PyPI | All versions | 13.0.0 |
Pillow PyPI | All versions | 13.0.0 |
Products include Python Pillow.
How do I fix CVE-2026-112392?
Upgrade pillow to 13.0.0 or later.
Is CVE-2026-112392 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-112392 exists.
Other vulnerabilities in Python Pillow
Sources
Also known as BIT-pillow-2026-112392, DEBIAN-CVE-2026-112392, ECHO-8e8c-c813-2f3f, GHSA-27h8-gf7j-v5hc, PYSEC-2026-4326, ROOT-APP-PYPI-CVE-2026-112392 and 1 more.