CVE-2026-59198: CWE-125: Out-of-bounds Read in python-pillow Pillow
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.
AI Analysis
Technical Summary
The vulnerability in Pillow's TGA RLE encoder allows an out-of-bounds read when saving a mode 1 image with TGA RLE compression. Specifically, the encoder reads beyond the allocated packed row buffer, resulting in adjacent process heap bytes being copied into the output TGA file. This affects Pillow versions from 5.2.0 through 12.2.x and is resolved in version 12.3.0.
Potential Impact
An attacker crafting or processing a specially crafted mode 1 TGA image could cause Pillow to read memory beyond its intended buffer, potentially leaking sensitive adjacent heap data into the generated TGA file. The CVSS score of 6.5 reflects a medium severity with high confidentiality impact but no integrity or availability impact. There are no known exploits in the wild.
Mitigation Recommendations
Upgrade Pillow to version 12.3.0 or later, where this vulnerability is fixed. Patch status is confirmed by the vendor advisory indicating the fix in 12.3.0. No other mitigations are specified.
CVE-2026-59198: CWE-125: Out-of-bounds Read in python-pillow 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
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
The vulnerability in Pillow's TGA RLE encoder allows an out-of-bounds read when saving a mode 1 image with TGA RLE compression. Specifically, the encoder reads beyond the allocated packed row buffer, resulting in adjacent process heap bytes being copied into the output TGA file. This affects Pillow versions from 5.2.0 through 12.2.x and is resolved in version 12.3.0.
Potential Impact
An attacker crafting or processing a specially crafted mode 1 TGA image could cause Pillow to read memory beyond its intended buffer, potentially leaking sensitive adjacent heap data into the generated TGA file. The CVSS score of 6.5 reflects a medium severity with high confidentiality impact but no integrity or availability impact. There are no known exploits in the wild.
Mitigation Recommendations
Upgrade Pillow to version 12.3.0 or later, where this vulnerability is fixed. Patch status is confirmed by the vendor advisory indicating the fix in 12.3.0. No other mitigations are specified.
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/21/2026, 19:35:58 UTC
Last updated: 08/25/2026, 22:52:12 UTC
Views: 64
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.