CVE-2026-54058 Details
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.
A vulnerability exists in the Pillow Python imaging library, specifically in versions prior to 12.3.0, when handling uncompressed McIdas AREA images. The issue arises during the loading process, where attacker-controlled header information can manipulate the row stride to be smaller than the natural row width. This misalignment allows pixel access methods, such as Image.tobytes(), to read beyond the allocated memory, potentially disclosing adjacent process memory or causing a segmentation fault. The vulnerability is introduced through the mmap raw codec path, when images are opened from a filename.
Users can upgrade to Pillow version 12.3.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/python-pillow/Pillow/security/advisories/GHSA-62p4-gmf7-7g93 | CISA-ADP | ExploitMitigationVendor Advisory |
| https://github.com/python-pillow/Pillow/commit/6a8de891fb00968e5ea79bfa84368ed90b3cfc1d | [email protected] | Patch |
| https://github.com/python-pillow/Pillow/pull/9719 | [email protected] | Issue TrackingPatch |
| https://github.com/python-pillow/Pillow/releases/tag/12.3.0 | [email protected] | ProductRelease Notes |
| https://github.com/python-pillow/Pillow/security/advisories/GHSA-62p4-gmf7-7g93 | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| python pillow | < 12.3.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 6, 2026 | Initial Analysis | [email protected] |
| Jul 14, 2026 | CVE Modified | CISA-ADP |
| Jul 14, 2026 | New CVE Received | [email protected] |