CVE-2026-112402CWE-416

CVE-2026-112402

published October 20, 2026

CVSS
8.7
EPSS
0%
Percentile
36.9
In the wild
Unconfirmed
What it is

Pillow is a Python imaging library. Prior to 13.0.0, Pillow can double free image memory when ImagingScaleAffine encounters a selective allocation failure. The affected fast path handles Transform.EXTENT or pure scale-and-translate Transform.AFFINE operations with the default NEAREST resampling. The output image allocation must succeed while the additional per-column lookup allocation fails, after which the error path deletes image storage that later cleanup releases again. An attacker who can drive such a large Image.transform() operation under memory pressure may trigger the failure. This can crash the process and may corrupt memory. This issue is fixed in version 13.0.0.

The record
Technical detail
CVSS
8.7 · NONE
CVSS v4.0
8.7 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
EPSS
0.00436 · 36.9th percentile
Weakness
CWE-416 · Use After Free
Published
2026-10-20T02:17Z
References (4)
EPSS history
Timeline
  • 21 OCT 03:27Z
    EPSS moved — → 0%
    epss
  • 19 OCT 21:18Z
    Pillow: Double free in ImagingScaleAffine on calloc failure via Image.transform
    cvelistv5
  • 19 OCT 21:18Z
    Pillow: Double free in ImagingScaleAffine on calloc failure via Image.transform
    cvelistv5