{"id":"CVE-2026-59198","published":"2026-07-14T16:07:56Z","modified":"2026-07-14T19:55:56Z","title":"Pillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00497,"percentile":0.3549,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"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","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/commit/eada3cbd7fb9963ee90673fb7b5270124a0d5f4b","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/12.3.0","tags":["x_refsource_MISC"]}],"priority":{"score":11.6,"factors":[{"name":"EPSS percentile","points":7.1},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":[">= 5.2.0, < 12.3.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-14T19:44:23.310384Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Pillow","vulnerableRanges":[">=5.2.0, <12.3.0"],"patched":["12.3.0"],"from":["GHSA-fj7v-r99m-22gq","PYSEC-2026-3494"],"provenance":"source"}],"summary":{"text":"The Pillow imaging library's TGA RLE encoder reads past its packed row buffer when saving mode 1 images with RLE compression, affecting versions from 5.2.0 up to but not including 12.3.0. An attacker who can get a vulnerable application to save such an image over the network, with the attack complexity being high, can have adjacent process heap bytes copied into the generated TGA file, and no privileges or user interaction are required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:06:30Z"},"euvd":{"id":"EUVD-2026-43752","exploited":false,"provenance":"source"}}