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 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.
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 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.
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 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.