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.
Affected products
python: pillow
References5
- github.com/python-pillow/Pillow/security/advisories/GHSA-fj7v-r… ExploitVendor Advisory
- github.com/python-pillow/Pillow/security/advisories/GHSA-fj7v-r… ExploitVendor Advisory
- github.com/python-pillow/Pillow/commit/eada3cbd7fb9963ee90673fb… Patch
- github.com/python-pillow/Pillow/pull/9709 Issue TrackingPatch
- github.com/python-pillow/Pillow/releases/tag/12.3.0 Release Notes
Metrics
- CVSS 3.1
-
7.5
HIGH
Score source: NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - EPSS — exploit probability
- 0% percentile: 25 · as of 15 November 2026
- CWE
- CWE-125
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.