Today's specials

pwned.coffeeOrder ticket · today's special · 20 Oct 2026

criticalpatched

Pillow: Heap buffer overflow in ImagingJpegDecode

Pillow (pip)

## 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()` sets `cinfo.scale_num`/`scale_denom`, calls `jpeg_start_decompress()`,…

First seen
Last update
Fixed in
  • Pillow 13.0.0
Identifiers
CVSS
9.2
Source
GitHub advisory
On the menu as

Sources

Totalone very hot coffee