Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-54058: CWE-125: Out-of-bounds Read in python-pillow Pillow

0
High
VulnerabilityCVE-2026-54058cvecve-2026-54058cwe-125
Published: 07/14/2026 (07/14/2026, 16:27:38 UTC)
Source: CVE Database V5
Vendor/Project: python-pillow
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

pillow
pkg:pypi/pillow
Affected versions
<12.3.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/14/2026, 17:02:48 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses