Vulnerability 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 Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Python | Pillow | >= 5.2.0, < 12.3.0 |
Related Weaknesses (CWE)
References
- https://github.com/python-pillow/Pillow/commit/eada3cbd7fb9963ee90673fb7b5270124Patch
- https://github.com/python-pillow/Pillow/pull/9709Issue TrackingPatch
- https://github.com/python-pillow/Pillow/releases/tag/12.3.0Release Notes
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-fj7v-r99m-22gqExploitVendor Advisory
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-fj7v-r99m-22gqExploitVendor Advisory
FAQ
What is CVE-2026-59198?
CVE-2026-59198 is a vulnerability with a CVSS score of 6.5 (MEDIUM). 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 he...
How severe is CVE-2026-59198?
CVE-2026-59198 has been rated MEDIUM with a CVSS base score of 6.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-59198?
Check the references section above for vendor advisories and patch information. Affected products include: Python Pillow.