CVE-2026-54058: CWE-125: Out-of-bounds Read in python-pillow Pillow
A high-severity out-of-bounds read vulnerability exists in the python-pillow Pillow library prior to version 12.3.0. When loading an uncompressed McIdas AREA image via the mmap raw codec path, specially crafted header values can cause pixel access functions to read beyond the mapped memory region. This can lead to disclosure of adjacent process memory or application faults. The issue is fixed in Pillow version 12.3.0.
AI Analysis
Technical Summary
CVE-2026-54058 is an out-of-bounds read vulnerability (CWE-125) in the Pillow Python imaging library. Specifically, when Pillow loads an uncompressed McIdas AREA image from a filename using the mmap raw codec path, attacker-controlled header words can set a row stride smaller than the natural row width. This causes pixel access operations such as Image.tobytes(), getpixel, convert, or save to read beyond the mapped memory region. This memory access can disclose adjacent process memory or cause faults. The vulnerability affects all Pillow versions prior to 12.3.0 and has a CVSS 4.0 score of 8.3 (high severity). The issue is fixed in version 12.3.0.
Potential Impact
Exploitation of this vulnerability can result in disclosure of adjacent process memory contents or application faults due to out-of-bounds reads. This can lead to leakage of sensitive information from process memory. No evidence of known exploits in the wild is reported.
Mitigation Recommendations
Upgrade to Pillow version 12.3.0 or later, where this vulnerability is fixed. No other mitigation or temporary workaround is indicated. Patch status is confirmed by the vendor advisory stating the fix is in 12.3.0.
CVE-2026-54058: CWE-125: Out-of-bounds Read in python-pillow Pillow
Description
A high-severity out-of-bounds read vulnerability exists in the python-pillow Pillow library prior to version 12.3.0. When loading an uncompressed McIdas AREA image via the mmap raw codec path, specially crafted header values can cause pixel access functions to read beyond the mapped memory region. This can lead to disclosure of adjacent process memory or application faults. The issue is fixed in Pillow version 12.3.0.
CVSS v4.0
Score 8.3high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-54058 is an out-of-bounds read vulnerability (CWE-125) in the Pillow Python imaging library. Specifically, when Pillow loads an uncompressed McIdas AREA image from a filename using the mmap raw codec path, attacker-controlled header words can set a row stride smaller than the natural row width. This causes pixel access operations such as Image.tobytes(), getpixel, convert, or save to read beyond the mapped memory region. This memory access can disclose adjacent process memory or cause faults. The vulnerability affects all Pillow versions prior to 12.3.0 and has a CVSS 4.0 score of 8.3 (high severity). The issue is fixed in version 12.3.0.
Potential Impact
Exploitation of this vulnerability can result in disclosure of adjacent process memory contents or application faults due to out-of-bounds reads. This can lead to leakage of sensitive information from process memory. No evidence of known exploits in the wild is reported.
Mitigation Recommendations
Upgrade to Pillow version 12.3.0 or later, where this vulnerability is fixed. No other mitigation or temporary workaround is indicated. Patch status is confirmed by the vendor advisory stating the fix is in 12.3.0.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-11T18:24:35.096Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a56684768715ace43dcfe88
Added to database: 07/14/2026, 16:48:07 UTC
Last enriched: 07/21/2026, 19:39:34 UTC
Last updated: 08/27/2026, 22:52:12 UTC
Views: 87
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.