Is pillow safe? Known vulnerabilities by version
pillow is a Python package on PyPI. We track 2 of its versions: 1 of them has known vulnerabilities.
The newest stable version we track with no known advisory, as of 22 November 2026. A newer release may exist on PyPI.
Vulnerabilities by version
Every advisory for pillow
-
Critical
CVE-2026-112393: Pillow: Heap buffer overflow in _tiffWriteProc when saving TIFF to BytesIO
Affects 10.4.0 (of the versions we track).
-
Critical
CVE-2026-112398: Pillow: Heap buffer overflow in FlashPix (FPX) JPEG decoding leads to code execution
Affects 10.4.0 (of the versions we track).
-
Critical
CVE-2026-112403: Pillow: Heap buffer overflow in ImagingJpegDecode
Affects 10.4.0 (of the versions we track).
-
Critical
CVE-2026-112900: Pillow: Argument Injection in Ghostscript call, potentially leading into RCE
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-112390: Pillow: Infinite loop in MIC n_frames when the embedded TIFF
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-112392: Pillow: NULL dereference in ImagingExpand via rank filters on zero-size images
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-96642: Pillow: TarIO negative size field causes infinite CPU-spin loop
Affects 10.4.0 (of the versions we track).
-
High
CVSS 7.5
CVE-2026-55379: Pillow `BdfFontFile`: `Image.new()` called without `_decompression_bomb_check()` — bomb protection bypass via font loading
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-112397: Pillow: Out-of-bounds access in _imagingmorph on a zero-width image
Affects 10.4.0 (of the versions we track).
-
High
CVSS 7.5
CVE-2026-54060: Pillow: `FontFile.compile()`: `Image.new()` called without `_decompression_bomb_check()`
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-112399: Pillow: APNG background disposal allocates full canvas before decompression bomb check
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-54058: Pillow: Out-of-bounds read via attacker-controlled row stride on Pillow's mmap path (McIdas AREA files)
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-112400: Pillow: GIF seek keeps rejected size after DecompressionBombError, allowing DoS
Affects 10.4.0 (of the versions we track).
-
High
CVSS 7.5
CVE-2026-59199: Pillow: Heap out-of-bounds write `Image.paste()` / `Image.crop()` via signed coordinate overflow
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-112402: Pillow: Double free in ImagingScaleAffine on calloc failure via Image.transform
Affects 10.4.0 (of the versions we track).
-
High
CVSS 7.5
CVE-2026-54059: Pillow `PcfFontFile._load_bitmaps()`: `Image.frombytes()` called without `_decompression_bomb_check()` — bomb protection bypass via PCF font loading
Affects 10.4.0 (of the versions we track).
-
High
CVSS 7.5
CVE-2026-59205: Pillow: Controlled heap out-of-bounds write in Pillow `ImageCmsTransform.apply()` via output mode mismatch
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-96644: Pillow: Heap over-read in WMF/EMF rendering via 16-bit dimension truncation (Windows builds)
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-112404: Pillow: OOB read in TiffDecode.c tile and RGBA paths leaks heap memory into pixels
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-25990: Pillow affected by out-of-bounds write when loading PSD images
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-112406: Pillow: Infinite loop in PdfParser.rewrite_pages on page tree Parent cycle
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-96778: Pillow: Heap buffer overflow writing JPEG comment after ICC profile fills buffer
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-96637: Pillow: Decompression bomb check bypass in SpiderImagePlugin.seek() leads to unbounded allocation DoS
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-112892: Pillow: MSP RLE decoder expands a tiny file into unbounded memory
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-112893: Pillow: Invalid free in FreeType glyph rendering when a stroker is active
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-112894: Pillow: Quadratic-time DoS in PDF save_all (PdfParser.next_object_id)
Affects 10.4.0 (of the versions we track).
-
High
CVSS 7.5
CVE-2026-59200: Pillow: Decompression Bomb DoS via PdfParser.PdfStream.decode()
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-96640: Pillow PDF append accepts malformed shared page-tree DAG causing resource exhaustion
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-112895: Pillow: Unbounded recursion parsing a PDF page tree or trailer chain (incomplete fix for CVE-2026-42310)
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-112896: Pillow: TIFF encoder ColorMap plane-size mismatch causes a heap out-of-bounds read
Affects 10.4.0 (of the versions we track).
-
High
CVSS 7.5
CVE-2026-55380: Pillow `GdImageFile._open()`: image dimensions accepted without `_decompression_bomb_check()`
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-42311: Pillow has an OOB Write with Invalid PSD Tile Extents (Integer Overflow)
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-112897: Pillow: TiffDecode returns uninitialized memory as pixels for short JPEG strips
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-59204: Pillow JPEG2000 tiled decode retains a growing scratch buffer and can be used for denial of service
Affects 10.4.0 (of the versions we track).
-
High
CVSS 7.5
CVE-2026-40192: FITS GZIP decompression bomb in Pillow
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-128067: Pillow: Heap buffer overflow saving TIFF with libtiff when tags override image size
Affects 10.4.0 (of the versions we track).
-
High
CVSS 8.2
CVE-2026-59197: Pillow: Heap out-of-bounds write in `ImageFilter.RankFilter` via integer overflow in `ImagingExpand`
Affects 10.4.0 (of the versions we track).
-
High
CVE-2026-112902: Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags
Affects 10.4.0 (of the versions we track).
-
Medium
CVSS 6.5
CVE-2026-96638: Pillow: BMP RLE decoder memory-amplification DoS via unbounded delta escape / absolute mode
Affects 10.4.0 (of the versions we track).
-
Medium
CVE-2026-112391: Pillow: PdfParser can recurse without limit in get_value() and linearize_page_tree()
Affects 10.4.0 (of the versions we track).
-
Medium
CVE-2026-112394: Pillow: P;2L and P;4L decoders may read 1 to 3 bytes past the passed buffer size
Affects 10.4.0 (of the versions we track).
-
Medium
CVSS 6.5
CVE-2026-112395: Pillow tiled-TIFF decoder reads past tile buffer in copy4 (Unpack.c:1290)
Affects 10.4.0 (of the versions we track).
-
Medium
CVSS 6.5
CVE-2026-96641: Pillow: Reachable undefined behavior in native integer operations, potentially leading to denial of service or logic integrity compromise
Affects 10.4.0 (of the versions we track).
-
Medium
CVSS 4.5
CVE-2026-55798: Pillow: WindowsViewer.get_command() OS command injection via unescaped shell path
Affects 10.4.0 (of the versions we track).
-
Medium
CVE-2026-112401: Pillow: Quadratic GIF comment concatenation allows DoS in Image.open()
Affects 10.4.0 (of the versions we track).
-
Medium
CVE-2026-112891: Pillow: Quadratic GIF comment copying during save
Affects 10.4.0 (of the versions we track).
-
Medium
CVSS 6.5
CVE-2026-59198: Pillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images
Affects 10.4.0 (of the versions we track).
-
Medium
CVSS 6.5
CVE-2026-96636: Pillow: Decompression-bomb protection bypass via multi-frame seek() in MPO and DCX (MpoImageFile.seek / DcxImageFile.seek)
Affects 10.4.0 (of the versions we track).
-
Medium
CVSS 5.5
CVE-2026-42310: Pillow has a PDF Parsing Trailer Infinite Loop (DoS)
Affects 10.4.0 (of the versions we track).
-
Medium
CVE-2026-112898: Pillow: Image.quantize() with empty palette leaks uninitialized stack memory
Affects 10.4.0 (of the versions we track).
-
Medium
CVE-2026-112899: Pillow: EPS load(scale) lets Ghostscript render past the decompression bomb limit
Affects 10.4.0 (of the versions we track).
-
Medium
CVSS 5.5
CVE-2026-42308: Pillow has an integer overflow when processing fonts
Affects 10.4.0 (of the versions we track).
-
Medium
CVE-2026-128066: Pillow: Memory DoS in TIFF and EXIF IFD parsing via overlapping tag data
Affects 10.4.0 (of the versions we track).
-
Medium
CVE-2026-112901: Pillow: ReDoS in XbmImagePlugin: 512-byte file stalls Image.open() for minutes
Affects 10.4.0 (of the versions we track).
Licence
The declared licence changed between versions. Check that the version you use is under a licence you can accept.
Check your whole project
pillow is one package among hundreds in a lockfile. Upload your lockfile, or paste a public GitHub repository, and get every vulnerable package with the version that fixes it. Free, and no account needed.
Get emailed about new advisories for pillow (free, no account)
About this data
Vulnerability data: OSV.dev, last checked 22 November 2026. Licences: deps.dev. These pages list the versions AIssue checks every day for the projects it monitors, not every version ever released.