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-59198: CWE-125: Out-of-bounds Read in python-pillow Pillow

0
Medium
VulnerabilityCVE-2026-59198cvecve-2026-59198cwe-125
Published: 07/14/2026 (07/14/2026, 16:07:56 UTC)
Source: CVE Database V5
Vendor/Project: python-pillow
Product: Pillow

Description

Pillow is a Python imaging library. From 5.2.0 until 12.3.0, Pillow's TGA RLE encoder reads past its packed row buffer when saving a mode 1 image with TGA RLE compression, allowing adjacent process heap bytes to be copied into the generated TGA file. This issue is fixed in version 12.3.0.

CVSS v3.1

Score 6.5medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L

Affected software

pillow
pkg:pypi/pillow
Affected versions
<12.3.0 >=5.2.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, 16:34:55 UTC

Technical Analysis

The Pillow Python imaging library versions 5.2.0 through 12.2.x contain an out-of-bounds read vulnerability (CWE-125) in the TGA RLE encoder. Specifically, when saving a mode 1 image using TGA RLE compression, the encoder reads beyond the bounds of its packed row buffer, resulting in adjacent process heap memory being copied into the output TGA file. This vulnerability was addressed and fixed in version 12.3.0.

Potential Impact

This vulnerability allows reading of adjacent heap memory during image encoding, which may lead to unintended disclosure of memory contents in the generated TGA file. The CVSS 3.1 base score is 6.5 (medium severity), indicating a network attack vector with high complexity and no privileges or user interaction required. The impact is confidentiality loss (high), with no integrity or availability impact reported. There are no known exploits in the wild at this time.

Mitigation Recommendations

Upgrade to Pillow version 12.3.0 or later, where this vulnerability is fixed. No other official remediation or temporary fixes are documented. Patch status is confirmed by the vendor advisory stating the issue is fixed in 12.3.0.

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-07-02T19:53:48.831Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a56616e68715ace43d27021

Added to database: 07/14/2026, 16:18:54 UTC

Last enriched: 07/14/2026, 16:34:55 UTC

Last updated: 07/14/2026, 22:12:27 UTC

Views: 7

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