Skip to main content
← All vulnerabilities
CVE-2026-112392GHSA-27H8-GF7J-V5HCBIT-PILLOW-2026-112392PYSEC-2026-4326

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 13.0.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

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

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • python-pillow Pillow

    fixed in 13.0.0

  • pillowPyPI

    fixed in 13.0.0

  • pillowBitnami

    fixed in 13.0.0

References 3

GitHub · python-pillow/Pillow