{"id":"CVE-2026-112392","title":"Pillow: NULL dereference in ImagingExpand via rank filters on zero-size images","summary":"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…","severity":"high","cvss":8.2,"cvssVector":"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","cvssSource":"cna","cwe":["CWE-476"],"vendor":"python-pillow","product":"Pillow","affected":["Pillow < 13.0.0"],"published":"2026-10-19","updated":"2026-10-19","sourceUpdated":"2026-10-19T21:17:18.908Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-112392","references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-27h8-gf7j-v5hc","label":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-27h8-gf7j-v5hc"},{"url":"https://github.com/python-pillow/Pillow/commit/443e3130a8c11594fd0e296afad497e11e678961","label":"https://github.com/python-pillow/Pillow/commit/443e3130a8c11594fd0e296afad497e11e678961"},{"url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0","label":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0"}],"tags":["cve.org"],"ingestedAt":"2026-10-19T21:43:56.126Z","slug":"CVE-2026-112392","body":"## Overview\n\nPillow 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.\n\n## Affected\n\n- `Pillow < 13.0.0`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"twilight","depthScore":45,"depthScoreParts":{"impact":45.1,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}