PatchSiren cyber security CVE debrief
CVE-2026-54058 python-pillow CVE debrief
The Pillow library, a Python imaging library, is vulnerable to a memory disclosure issue. When loading an uncompressed McIdas AREA image, attacker-controlled header words can set a row stride smaller than the natural row width. This can cause pixel access functions like Image.tobytes(), getpixel, convert, or save to read beyond the mapped region and disclose adjacent process memory or fault. Developers and administrators using Pillow in their applications should be aware of this vulnerability and take steps to mitigate it. This includes updating Pillow to version 12.3.0 or later and restricting access to untrusted image sources. The issue is fixed in Pillow version 12.3.0.
- Vendor
- python-pillow
- Product
- Pillow
- CVSS
- HIGH 8.3
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-07-14
- Original CVE updated
- 2026-08-06
- Advisory published
- 2026-07-14
- Advisory updated
- 2026-08-06
Who should care
Developers and administrators using Pillow in their applications should be aware of this vulnerability and take steps to mitigate it. This includes updating Pillow to version 12.3.0 or later and restricting access to untrusted image sources. Security teams and vulnerability management teams should review the affected scope and severity of the vulnerability and plan for vendor-supported updates or mitigations.
Technical summary
The Pillow library, a Python imaging library, is vulnerable to a memory disclosure issue. When loading an uncompressed McIdas AREA image, attacker-controlled header words can set a row stride smaller than the natural row width. This can cause pixel access functions like Image.tobytes(), getpixel, convert, or save to read beyond the mapped region and disclose adjacent process memory or fault. The issue is fixed in Pillow version 12.3.0. Affected product deployments should be reviewed for exposure and updated to the latest version.
Defensive priority
High-priority defensive actions are required due to the high CVSS score of 8.3 and the potential for memory disclosure.
Recommended defensive actions
- Update Pillow to version 12.3.0 or later
- Restrict access to untrusted image sources
- Monitor for potential exploitation attempts
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
Evidence notes
The CVE-2026-54058 issue arises in Pillow, a Python imaging library, where loading an uncompressed McIdas AREA image can lead to memory disclosure due to attacker-controlled header words setting a row stride smaller than the natural row width. This can cause pixel access functions like Image.tobytes(), getpixel, convert, or save to read beyond the mapped region. The issue is fixed in Pillow version 12.3.0. Evidence is based on official CVE and NVD records, as well as vendor advisories from GitHub.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-54058 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-54058
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-54058 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-54058
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Mitigation or vendor reference
Unverified legacy reference
URL: https://github.com/python-pillow/Pillow/commit/6a8de891fb00968e5ea79bfa84368ed90b3cfc1d
[email protected] - Patch
-
Mitigation or vendor reference
Unverified legacy reference
URL: https://github.com/python-pillow/Pillow/pull/9719
[email protected] - Issue Tracking, Patch
-
Mitigation or vendor reference
Unverified legacy reference
URL: https://github.com/python-pillow/Pillow/releases/tag/12.3.0
[email protected] - Product, Release Notes
-
Mitigation or vendor reference
Unverified legacy reference
URL: https://github.com/python-pillow/Pillow/security/advisories/GHSA-62p4-gmf7-7g93
[email protected] - Exploit, Mitigation, Vendor Advisory
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.