Tetrak
GitHub ↗
Security

Pillow advisories

The Python image library. Most Python programs that open a JPEG, PNG or TIFF do it with Pillow, Tetrak OCR included; it wraps libjpeg-turbo, libpng, libtiff and the others below

61 advisories recorded for Pillow (pillow on PyPI); the project is at https://github.com/python-pillow/Pillow. Newest first.

PublishedAdvisoryReaches youWhat sillybos does
A FlashPix file runs code when opened, if olefile is installed CVE-2026-112398by opening a fileRefused by default
Pillow's bundled OpenJPEG carries an unreleased heap-overflow fix GHSA-78g4-xqwv-q3g8by opening a fileRefused by default
A SPIDER stack file bypasses the pixel limit on seek CVE-2026-96637by opening a fileRefused by default
A shared page-tree graph makes Pillow's PDF append take disproportionate time CVE-2026-96640through another callNeeds decoding to detect
A PNG's EXIF chunk makes parsing take quadratic time CVE-2026-96643by opening a fileRefused by default
A multi-frame file that changes colour mode writes into a buffer sized for the first frame CVE-2026-96639by opening a fileRefused by default
A later frame of an MPO or DCX file is never checked against the pixel limit CVE-2026-96636by opening a fileRefused by default
A kilobyte BMP makes Pillow's run-length decoder allocate gigabytes CVE-2026-96638by opening a fileRefused by default
A JPEG comment after a full ICC profile overflows Pillow's JPEG encoder CVE-2026-96778on a save pathRefused with a setting
Saving a TIFF to memory overruns a heap buffer CVE-2026-112393on a save pathNot reached by opening a file
Saving a multi-frame image as a PDF takes quadratic time CVE-2026-112894on a save pathRefused by default
Saving a GIF with a long comment copies it in quadratic time CVE-2026-112891on a save pathRefused with a setting
Pillow's PDF parser recurses without limit when appending CVE-2026-112391on a save pathNeeds decoding to detect
PdfParser.rewrite_pages loops for ever on a page-tree Parent cycle CVE-2026-112406through another callNeeds decoding to detect
Image.quantize with an empty palette returns uninitialised stack memory CVE-2026-112898through another callRefused with a setting
Crafted TIFF tags make Pillow's libtiff encoder copy process memory into the output CVE-2026-112902on a save pathRefused with a setting
Arrow export leaks heap memory when PILLOW_ALIGNMENT is above 1 CVE-2026-114501through another callNot reached by opening a file
An EPS file's name is passed to Ghostscript as an option CVE-2026-112900by opening a fileRefused by default
An animated PNG allocates its full canvas before the pixel limit is checked CVE-2026-112399by opening a fileRefused by default
A wide, short metafile over-reads the heap in Pillow's Windows renderer CVE-2026-96644by opening a fileRefused by default
A tiny MSP file expands without bound in Pillow's run-length decoder CVE-2026-112892by opening a fileRefused by default
A PILfont's negative glyph advance makes a signed integer wrap CVE-2026-96641through another callRefused by default
A negative size in a tar header spins Pillow's TarIO for ever CVE-2026-96642through another callRefused by default
A MIC file makes counting its frames loop for ever CVE-2026-112390by opening a fileRefused by default
A GIF's comments are concatenated in quadratic time in Image.open CVE-2026-112401by opening a fileRefused by default
A failed glyph load with a stroker active frees an invalid pointer CVE-2026-112893through another callRefused by default
A 512-byte XBM file stalls Image.open() for minutes CVE-2026-112901by opening a fileRefused by default
PdfParser recurses without bound on a cyclic page tree or trailer chain CVE-2026-112895through another callNeeds decoding to detect
Loading an EPS at a scale lets Ghostscript render past the bomb limit CVE-2026-112899by opening a fileRefused by default
A tiled TIFF makes the decoder read past its tile buffer CVE-2026-112395by opening a fileRefused with a setting
A TIFF with short JPEG strips returns uninitialised memory as pixels CVE-2026-112897by opening a fileRefused with a setting
A malformed compressed TIFF leaks heap memory into its pixels CVE-2026-112404by opening a fileRefused with a setting
A lossless JPEG overruns the decode buffer when scaled CVE-2026-112403by opening a fileRefused by default
A 60-byte GIF makes Pillow allocate gigabytes after a bomb error is caught CVE-2026-112400by opening a fileRefused by default
Saving a TIFF with a retained ColorMap over-reads in Pillow's encoder CVE-2026-112896on a save pathRefused by default
Pillow's 2- and 4-bit palette unpackers read past the buffer CVE-2026-112394by opening a fileRefused with a setting
Image.transform frees twice when an oversized transform runs out of memory CVE-2026-112402through another callNot reached by opening a file
Encoding a TIFF to memory uses a freed buffer when libtiff rejects a tag CVE-2026-112396on a save pathRefused by default
An IPTC file with no recognisable header drives Image.merge into a null pointer CVE-2026-112405by opening a fileRefused by default
A zero-width PPM image crashes Pillow's morphology code CVE-2026-112397through another callRefused by default
A rank filter on a zero-size image dereferences a null pointer CVE-2026-112392through another callRefused by default
Pillow's TGA run-length encoder copies heap bytes into the file it writes CVE-2026-59198on a save pathNot reached by opening a file
PdfParser inflates a PDF stream without an upper bound CVE-2026-59200through another callNeeds decoding to detect
A tiled JPEG 2000 grows Pillow's scratch buffer to a whole image CVE-2026-59204by opening a fileRefused by default
A McIdas AREA file's row stride over-reads Pillow's memory map CVE-2026-54058by opening a fileRefused by default
Coordinates near the 32-bit limit write out of bounds in Pillow's paste and crop CVE-2026-59199through another callNot reached by opening a file
An output image of the wrong mode corrupts the heap in ImageCms transforms CVE-2026-59205through another callNot reached by opening a file
A negative byte count in an EPS file loops Image.open for ever CVE-2026-59203by opening a fileRefused by default
A huge rank-filter size writes out of bounds in ImagingExpand CVE-2026-59197through another callNot reached by opening a file
Pillow's Windows viewer builds a shell command from an unescaped path CVE-2026-55798through another callNot reached by opening a file
GdImageFile.open accepts any dimensions without the bomb check CVE-2026-55380through another callRefused by default
FontFile.compile assembles a bitmap without the bomb check CVE-2026-54060through another callRefused by default
A PCF font's glyph sizes bypass Pillow's decompression-bomb check CVE-2026-54059through another callRefused by default
A BDF font's bounding box bypasses Pillow's decompression-bomb check CVE-2026-55379through another callRefused by default
PSD tile extents overflow Pillow's bounds check and write out of bounds CVE-2026-42311by opening a fileRefused by default
Pillow's PdfParser loops for ever on a cyclic trailer CVE-2026-42310through another callNeeds decoding to detect
Nested coordinate lists overrun a heap buffer in Pillow's drawing CVE-2026-42309through another callNot reached by opening a file
A font with huge glyph advances overflows Pillow's position counter CVE-2026-42308through another callRefused by default
A FITS file's gzip stream expands without limit in Pillow CVE-2026-40192by opening a fileRefused by default
A crafted PSD file writes out of bounds when Pillow loads it CVE-2026-25990by opening a fileRefused by default
Saving a large DDS image overruns a heap buffer in Pillow's BCn encoder CVE-2025-48379on a save pathNot reached by opening a file

Back to the whole watch.