EXPOSURES › CVE-2026-54058
CVE-2026-54058
CRITICALPillow <12.3.0 allows reading beyond image memory bounds when loading McIdas AREA files, leaking adjacent process memory.
Pillow's mmap raw codec path lets attacker-controlled headers set a row stride smaller than the natural width, causing pixel access functions to read beyond the mapped region and disclose adjacent process memory. DIB orgs must patch Pillow to 12.3.0 immediately to prevent memory disclosure that could leak secrets or enable further exploitation. This is not an RCE but a memory disclosure vulnerability.
Shame score — A critical memory disclosure flaw in a widely used Python library that was patched in 12.3.0 but left unpatched in many systems, allowing attackers to read adjacent process memory.
▸ RECOMMENDED ACTION Critical severity — schedule patching of the affected products.
Pillow is a Python imaging library. Prior to 12.3.0, when Pillow loads an uncompressed McIdas AREA image from a filename through the mmap raw codec path, attacker-controlled header words can set a row stride smaller than the natural row width, causing pixel access such as Image.tobytes(), getpixel, convert, or save to read beyond the mapped region and disclose adjacent process memory or fault. This issue is fixed in version 12.3.0.