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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-125"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59198.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "5.2.0"
},
{
"fixed": "12.3.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "eada3cbd7fb9963ee90673fb7b5270124a0d5f4b"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "12.3.0",
"range": [
{
"fixed": "bb1d8e8ab8d29048624d96e3ee53cecf7c13d13d"
}
],
"source": "REFERENCES_TAG"
}
]
}