Impact
Pillow, a Python imaging library, contains a double‑free bug in the ImagingScaleAffine function. When an Image.transform() operation performs a large transform with the default NEAREST resampling, a secondary memory allocation may fail after a first successful allocation. The error path then frees the image storage twice, corrupting the heap. The result can be a crash or memory corruption, but the CVE description does not indicate any code execution capability.
Affected Systems
Any installation of Pillow prior to version 13.0.0 is affected. Python applications that perform transform operations such as Transform.EXTENT or pure scale‑and‑translate Transform.AFFINE with NEAREST resampling may trigger the flaw. The bug is fixed in Pillow 13.0.0 and later.
Risk and Exploitability
The CVSS base score of 8.7 signals high impact. EPSS is not available, so exploitation probability is unknown. The vulnerability is not listed in the CISA KEV catalog. The attack requires an attacker to be able to influence the size of image data processed by a Python process under memory pressure; successful exploitation results in process termination or heap corruption, potentially creating a denial‑of‑service condition.
OpenCVE Enrichment
Github GHSA