THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-8g5g-8vmr-9782 (critical) — Pillow: Heap buffer overflow in ImagingJpegDecode

[GHSA] GHSA-8g5g-8vmr-9782 (critical) — Pillow: Heap buffer overflow in ImagingJpegDecode

highgithub_advisoriesPublished 2026-10-20

GHSA-8g5g-8vmr-9782 Severity: critical CVE: CVE-2026-112403

Pillow: Heap buffer overflow in ImagingJpegDecode

## Summary

`JpegImageFile.draft()` — which `Image.thumbnail()` calls automatically — requests 1/2, 1/4 or 1/8 scaled JPEG output and shrinks `self._size` and the tile extents to match, so `_setimage()` allocates a single-row decode buffer of `ceil(W/s)` samples. `ImagingJpegDecode()` se

Indicators of compromise

Original source: https://github.com/advisories/GHSA-8g5g-8vmr-9782