{"id":"CVE-2026-59198","state":"PUBLISHED","title":"Pillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images","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.","publishedAt":"2026-07-14T16:07:56.562Z","updatedAt":"2026-07-14T19:55:56.380Z","severity":{"score":6.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["python-pillow Pillow"],"affected":[{"vendor":"python-pillow","product":"Pillow","versions":[{"version":">= 5.2.0, < 12.3.0","status":"affected"}]}],"references":["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"],"weaknesses":["CWE-125"],"ingestedAt":"2026-10-29T20:12:32.778Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/59xxx/CVE-2026-59198.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-59198","state":"PUBLISHED","datePublished":"2026-07-14T16:07:56.562Z","dateUpdated":"2026-07-14T19:55:56.380Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-07-02T19:53:48.831Z"},"containers":{"cna":{"title":"Pillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images","descriptions":[{"lang":"en","value":"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":[{"vendor":"python-pillow","product":"Pillow","versions":[{"version":">= 5.2.0, < 12.3.0","status":"affected"}]}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-fj7v-r99m-22gq","name":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-fj7v-r99m-22gq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/pull/9709","name":"https://github.com/python-pillow/Pillow/pull/9709","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/commit/eada3cbd7fb9963ee90673fb7b5270124a0d5f4b","name":"https://github.com/python-pillow/Pillow/commit/eada3cbd7fb9963ee90673fb7b5270124a0d5f4b","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/12.3.0","name":"https://github.com/python-pillow/Pillow/releases/tag/12.3.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","lang":"en","description":"CWE-125: Out-of-bounds Read","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-07-14T16:07:56.562Z"},"source":{"advisory":"GHSA-fj7v-r99m-22gq","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-fj7v-r99m-22gq","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-14T19:44:23.310384Z","id":"CVE-2026-59198","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-14T19:55:56.380Z"}}]}}}