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 imaging library prior to version 12.3.0. The flaw occurs when loading an uncompressed McIdas AREA image via the mmap raw codec path, where attacker-controlled 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 Python Pillow library before version 12.3.0. When Pillow loads an uncompressed McIdas AREA image from a filename using the mmap raw codec path, an attacker can manipulate header words to 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, potentially disclosing adjacent process memory or causing a fault. The vulnerability is resolved in Pillow 12.3.0.
Potential Impact
Exploitation of this vulnerability can lead to unauthorized disclosure of adjacent process memory contents or application crashes due to out-of-bounds memory reads. This may expose sensitive information from the process memory space. There is no indication of remote code execution or privilege escalation. No known exploits in the wild have been reported.
Mitigation Recommendations
This vulnerability is fixed in Pillow version 12.3.0. Users should upgrade to version 12.3.0 or later to remediate this issue. No other mitigation or temporary workaround is indicated.
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 imaging library prior to version 12.3.0. The flaw occurs when loading an uncompressed McIdas AREA image via the mmap raw codec path, where attacker-controlled 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 Python Pillow library before version 12.3.0. When Pillow loads an uncompressed McIdas AREA image from a filename using the mmap raw codec path, an attacker can manipulate header words to 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, potentially disclosing adjacent process memory or causing a fault. The vulnerability is resolved in Pillow 12.3.0.
Potential Impact
Exploitation of this vulnerability can lead to unauthorized disclosure of adjacent process memory contents or application crashes due to out-of-bounds memory reads. This may expose sensitive information from the process memory space. There is no indication of remote code execution or privilege escalation. No known exploits in the wild have been reported.
Mitigation Recommendations
This vulnerability is fixed in Pillow version 12.3.0. Users should upgrade to version 12.3.0 or later to remediate this issue. No other mitigation or temporary workaround is indicated.
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/14/2026, 17:02:48 UTC
Last updated: 07/14/2026, 17:47:02 UTC
Views: 5
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.