{"id":"BIT-pillow-2026-112392","summary":"Pillow: NULL dereference in ImagingExpand via rank filters on zero-size images","details":"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.","aliases":["CVE-2026-112392","GHSA-27h8-gf7j-v5hc","PYSEC-2026-4326"],"modified":"2026-10-27T11:10:35.409737764Z","published":"2026-10-26T05:55:33.132Z","database_specific":{"cpes":["cpe:2.3:a:python:pillow:*:*:*:*:*:python:*:*"],"severity":"High"},"references":[{"type":"FIX","url":"https://github.com/python-pillow/Pillow/commit/443e3130a8c11594fd0e296afad497e11e678961"},{"type":"ARTICLE","url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0"},{"type":"ADVISORY","url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-27h8-gf7j-v5hc"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-112392"}],"affected":[{"package":{"name":"pillow","ecosystem":"Bitnami","purl":"pkg:bitnami/pillow"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"13.0.0"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/pillow/BIT-pillow-2026-112392.json"},"severity":[{"type":"CVSS_V4","score":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}]}],"schema_version":"1.9.2"}