Memory Disclosure Vulnerability in Pillow Python Imaging Library
CVE-2026-54058
8.3HIGH
What is CVE-2026-54058?
The Pillow Python imaging library has a vulnerability that occurs when loading uncompressed McIdas AREA images via the mmap raw codec path. Attackers can exploit this by manipulating header words to create a row stride shorter than the natural row width. This can lead to reading beyond the mapped region during pixel access operations such as Image.tobytes(), getpixel, convert, or save, potentially disclosing adjacent process memory. The issue has been addressed and fixed in version 12.3.0.
Affected Version(s)
Pillow < 12.3.0
