# CVE-2026-112392: Pillow: NULL dereference in ImagingExpand via rank filters on zero-size images

- Severity: High 8.2 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-19T21:17:18.908Z
- Modified: 2026-10-27T11:10:35.409Z
- Also known as: GHSA-27h8-gf7j-v5hc, BIT-PILLOW-2026-112392, PYSEC-2026-4326
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- python-pillow Pillow: < 13.0.0
- pillow (PyPI): before 13.0.0
- python pillow: before 13.0.0
- pillow (Bitnami): before 13.0.0

## Every score

- GitHub_M: CVSS:4.0 8.2 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-27h8-gf7j-v5hc> (exploit, advisory, fix, patch, vendor-advisory, web)
- <https://github.com/python-pillow/Pillow/commit/443e3130a8c11594fd0e296afad497e11e678961> (fix, patch, web)
- <https://github.com/python-pillow/Pillow/releases/tag/13.0.0> (advisory, article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112392> (advisory, web)
- <https://github.com/python-pillow/Pillow> (package)

## Sources

- CVE List: [CVE-2026-112392](https://www.cve.org/CVERecord?id=CVE-2026-112392), CVE Terms of Use, modified 2026-10-20
- GitHub Advisory Database: [GHSA-27h8-gf7j-v5hc](https://github.com/advisories/GHSA-27h8-gf7j-v5hc), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2026-112392](https://nvd.nist.gov/vuln/detail/CVE-2026-112392), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-4326](https://osv.dev/vulnerability/PYSEC-2026-4326), CC-BY-4.0, modified 2026-10-27
- Bitnami Vulnerability Database: [BIT-PILLOW-2026-112392](https://osv.dev/vulnerability/BIT-PILLOW-2026-112392), Apache-2.0, modified 2026-10-27

---

Page: https://cve.day/CVE-2026-112392 · Whole record: https://cve.day/CVE-2026-112392.json · Rebuilt by cve.day 2026-11-25T22:59:45.942Z
