Ubuntu CVE Tracker
UBUNTU-CVE-2026-59198
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:20.04:LTS | pillow | All versions before 7.0.0-4ubuntu0.9+esm1 (fixed in 7.0.0-4ubuntu0.9+esm1) |
| Ubuntu:Pro:20.04:LTS | pillow-python2 | All versions, no fix listed |
| Ubuntu:22.04:LTS | pillow | All versions before 9.0.1-1ubuntu0.5 (fixed in 9.0.1-1ubuntu0.5) |
| Ubuntu:24.04:LTS | pillow | All versions before 10.2.0-1ubuntu1.3 (fixed in 10.2.0-1ubuntu1.3) |
| Ubuntu:26.04:LTS | pillow | All versions before 12.1.1-2ubuntu1.3 (fixed in 12.1.1-2ubuntu1.3) |
References
- https://ubuntu.com/security/CVE-2026-59198
- https://www.cve.org/CVERecord?id=CVE-2026-59198
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-fj7v-r99m-22gq
- https://github.com/python-pillow/Pillow/pull/9709
- https://github.com/python-pillow/Pillow/commit/eada3cbd7fb9963ee90673fb7b5270124a0d5f4b
- https://github.com/python-pillow/Pillow/releases/tag/12.3.0
- https://ubuntu.com/security/notices/USN-8690-1