{"id":"CVE-2026-112392","published":"2026-10-19T21:17:18Z","modified":"2026-10-20T14:50:31Z","title":"Pillow: NULL dereference in ImagingExpand via rank filters on zero-size images","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0053,"percentile":0.45695,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-27h8-gf7j-v5hc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/commit/443e3130a8c11594fd0e296afad497e11e678961","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":9.14},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":["< 13.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-20T14:49:00.514795Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Pillow","vulnerableRanges":["<13.0.0"],"patched":["13.0.0"],"from":["GHSA-27h8-gf7j-v5hc","PYSEC-2026-4326"],"provenance":"source"}],"summary":{"text":"The flaw is a NULL pointer dereference in the ImagingExpand routine of Pillow, the Python imaging library, which is triggered when rank-based filters (rank, median, minimum, or maximum) are applied to a zero-size image. An attacker who can supply, or cause the creation of, a zero-size image to an application that applies one of these filters can crash the native process, with no authentication or user interaction required and the attack conducted over the network.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:29Z"},"euvd":{"id":"EUVD-2026-104639","exploited":false,"provenance":"source"}}