CVE-2026-54058: Vulnerability in Python Pillow

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

PyPI, CWE-125

Exploitation
None confirmed
Severity
9.1 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-62p4-gmf7-7g93
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Weakness
CWE-125
Published
14 Jul 2026
Last change
24 Oct 2026
Ecosystem
PyPI

Affected products

Affected versions and the first fixed release

  • Python Pillow Before 12.3.0. Fixed in 12.3.0

Affected packages

Vulnerable version ranges and fixed releases

  • pillow PyPI, Affected before 12.3.0. Fixed in 12.3.0

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related