Shellfeed logo Shellfeed

CVE-2026-112392 · HIGH

Summary: Pillow: NULL dereference in ImagingExpand via rank filters on zero-size images

EPSS: 0.6% probability of exploitation in the next 30 days (percentile 48.9).

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.

Severity

HIGH — 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

Affected packages

  • PyPI pillow [0 – 13.0.0]
  • GIT github.com/python-pillow/pillow [0 – 293218ad059d994baf1777d882911bed6a49704a]

References