Vulnerability · Published Jul 14, 2026 · Assigned by GitHub_M

CVE-2026-54058Pillow: Out-of-bounds read via attacker-controlled row stride on Pillow's mmap path (McIdas AREA files)

High 8.3

In plain English

A high-severity out-of-bounds read in Pillow from python-pillow. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.3High
Exploit odds (30 days)0.5%top 55.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8python3-pillow5.1.1-23.el8_10ALSA-2026:48021
AlmaLinux:8python3-pillow-devel5.1.1-23.el8_10ALSA-2026:48021
AlmaLinux:8python3-pillow-doc5.1.1-23.el8_10ALSA-2026:48021
AlmaLinux:8python3-pillow-tk5.1.1-23.el8_10ALSA-2026:48021
Debian:12pillowno fix listedDEBIAN-CVE-2026-54058
Debian:13pillowno fix listedDEBIAN-CVE-2026-54058
Debian:14pillow12.3.0-1DEBIAN-CVE-2026-54058
PyPIpillow12.3.0GHSA-62p4-gmf7-7g93
PyPIpillow12.3.0PYSEC-2026-3493
Rocky Linux:8python-pillow0:5.1.1-23.el8_10RLSA-2026:48021
Ubuntu:22.04:LTSpillow9.0.1-1ubuntu0.6USN-8999-1
Ubuntu:22.04:LTSpillow9.0.1-1ubuntu0.6UBUNTU-CVE-2026-54058
Ubuntu:24.04:LTSpillow10.2.0-1ubuntu1.4USN-8999-1
Ubuntu:24.04:LTSpillow10.2.0-1ubuntu1.4UBUNTU-CVE-2026-54058
Ubuntu:26.04:LTSpillow12.1.1-2ubuntu1.4USN-8999-1
Ubuntu:26.04:LTSpillow12.1.1-2ubuntu1.4UBUNTU-CVE-2026-54058

Affected products (as reported)

VendorProductVersions
python-pillow Pillow < 12.3.0

Weakness: CWE-125 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N

References