← Vulnerability feed

Vulnerability record · CVE-2026-54058 · published 14 July 2026

CVE-2026-54058: Python pillow out-of-bounds read vulnerability

Python · Pillow

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.

8.3 CVSS 4.0 High EPSS 0.68% · top 49.5% CWE-125 · Out-of-bounds read
8.3CVSS 4.0 base score
0.68%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
5References, 2 tagged exploit
6 Aug 2026Last modified by NVD

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.

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2026-54058 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2014-3007Python pillow os command injection vulnerabilityPython Image Library (PIL) 1.1.7 and earlier and Pillow 2.3 might allow remote attackers to execute arbitrary commands via shell metacharacters in un…EPSS 12%9.8CVE-2022-30595Python pillow out-of-bounds write vulnerabilitylibImaging/TgaRleDecode.c in Pillow 9.1.0 has a heap buffer overflow in the processing of invalid TGA image files.EPSS 2.3%9.8CVE-2022-22817Python pillow vulnerabilityPIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method. A lambda expressi…EPSS 3.3%9.8CVE-2021-34552Python pillow classic buffer overflow vulnerabilityPillow through 8.2.0 and PIL (aka Python Imaging Library) through 1.1.7 allow an attacker to pass controlled parameters directly into a convert funct…EPSS 3.2%9.8CVE-2021-25289Python pillow out-of-bounds write vulnerabilityAn issue was discovered in Pillow before 8.1.1. TiffDecode has a heap-based buffer overflow when decoding crafted YCbCr files because of certain inte…EPSS 2.3%9.8CVE-2020-5311Python pillow classic buffer overflow vulnerabilitylibImaging/SgiRleDecode.c in Pillow before 6.2.2 has an SGI buffer overflow.EPSS 4.2%9.8CVE-2020-5312Python pillow classic buffer overflow vulnerabilitylibImaging/PcxDecode.c in Pillow before 6.2.2 has a PCX P mode buffer overflow.EPSS 3.7%9.8CVE-2016-4009Python pillow memory buffer overflow vulnerabilityInteger overflow in the ImagingResampleHorizontal function in libImaging/Resample.c in Pillow before 3.1.1 allows remote attackers to have unspecifie…EPSS 7.9%

Source: NIST National Vulnerability Database (record CVE-2026-54058), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.