Out-of-bounds read in Pillow - CVE-2026-59198
Published: July 7, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose sensitive information.
The vulnerability exists due to an out-of-bounds read in the TGA RLE encoder when saving a mode "1" image through the public save API with TGA RLE compression. A remote attacker can save a specially crafted image to disclose sensitive information.
The issue can serialize adjacent process heap bytes into the generated TGA file, and a maximum-width single-row image can expose nearly the full adjacent heap window.
Affected software
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Real Time 15
Python 3 Module
SUSE Package Hub 15
openSUSE Leap
openEuler
Ubuntu
Anolis OS
pillow (Ubuntu package)
python-Pillow-debuginfo
python3-Pillow-tk
python3-Pillow
python3-Pillow-tk-debuginfo
python3-Pillow-debuginfo
python-Pillow-debugsource
python-pillow-debuginfo
python-pillow
python-pillow-debugsource
python3-pillow
python3-pillow-devel
python3-pillow-qt
python3-pillow-tk
python3-pillow-help
python311-Pillow-tk
python311-Pillow-tk-debuginfo
python311-Pillow
python311-Pillow-debuginfo
python3-pillow-doc
How to mitigate CVE-2026-59198
pillow (Ubuntu package) - addressed in versions 7.0.0-4ubuntu0.9+esm1, 9.0.1-1ubuntu0.5, 10.2.0-1ubuntu1.3, 12.1.1-2ubuntu1.3
python-Pillow-debuginfo - addressed in versions 7.2.0-150300.3.30.1, 9.5.0-150400.5.25.1
python3-Pillow-tk - update to 7.2.0-150300.3.30.1
python3-Pillow - update to 7.2.0-150300.3.30.1
python3-Pillow-tk-debuginfo - update to 7.2.0-150300.3.30.1
python3-Pillow-debuginfo - update to 7.2.0-150300.3.30.1
python-Pillow-debugsource - addressed in versions 7.2.0-150300.3.30.1, 9.5.0-150400.5.25.1
python-pillow-debuginfo - addressed in versions 9.0.1-16, 10.3.0-8, 10.3.0-13
python-pillow - addressed in versions 9.0.1-16, 10.3.0-8, 10.3.0-13
python-pillow-debugsource - addressed in versions 9.0.1-16, 10.3.0-8, 10.3.0-13
python3-pillow - addressed in versions 9.0.1-16, 10.3.0-8, 10.3.0-13
python3-pillow-devel - addressed in versions 9.0.1-16, 10.3.0-8, 10.3.0-13
python3-pillow-qt - addressed in versions 9.0.1-16, 10.3.0-8, 10.3.0-13
python3-pillow-tk - addressed in versions 9.0.1-16, 10.3.0-8, 10.3.0-13
python3-pillow-help - addressed in versions 9.0.1-16, 10.3.0-8, 10.3.0-13
python311-Pillow-tk - update to 9.5.0-150400.5.25.1
python311-Pillow-tk-debuginfo - update to 9.5.0-150400.5.25.1
python311-Pillow - update to 9.5.0-150400.5.25.1
python311-Pillow-debuginfo - update to 9.5.0-150400.5.25.1
python3-pillow-tk - update to 12.2.0-3
python3-pillow-doc - update to 12.2.0-3
python3-pillow - update to 12.2.0-3
python3-pillow-qt - update to 12.2.0-3
python3-pillow-devel - update to 12.2.0-3
External References
Related Security Bulletins
- Multiple vulnerabilities in Pillow
- SUSE update for python-Pillow
- Anolis OS update for python-pillow
- openEuler 24.03 LTS SP4 update for python-pillow
- SUSE update for python-Pillow
- openEuler 24.03 LTS SP1 update for python-pillow
- openEuler 22.03 LTS SP4 update for python-pillow
- openEuler 20.03 LTS SP4 update for python-pillow
- openEuler 24.03 LTS SP3 update for python-pillow
- Ubuntu update for pillow