Skip to main content
PyPI (Python)

pillow Known Vulnerabilities & Fixes

pillow has 56 known security vulnerabilities in PyPI (Python). Upgrade to version 13.0.0 or later to resolve all known issues. Data sourced from OSV, enriched with EPSS exploit probability and CISA KEV.

56 Vulnerabilities

Actively Exploited

CISA has confirmed this package has vulnerabilities under active exploitation. Prioritize updating immediately.

Recommended safe version: 13.0.0

Upgrading to 13.0.0 or later resolves all 56 known vulnerabilities in pillow. Run: pip install "pillow>=13.0.0"

Is pillow in your project?

Check if you're affected and upgrade to 13.0.0 to stay secure.

56
Total
5
Critical
35
High
16
Medium
0
Low

Active Exploitation Warning

One or more vulnerabilities in this package are known to be actively exploited in the wild. Immediate action is recommended.

Security Summary

  • 57 affected version ranges have been identified across these 56 advisories.
  • 100% of known issues have a published fixed version.
  • Highest exploit-probability (EPSS) score for pillow: 52.8%.
  • Remediation: pip install --upgrade pillow

Vulnerabilities

56 unique vulnerabilities — sorted by exploitation risk (KEV → EPSS → CVSS). Click a CVE/GHSA ID for full details. First disclosed Sep 12, 2023, most recently Nov 12, 2026 (1157 days apart).

CVE / GHSASeverity
CVE-2023-4863
libwebp: OOB write in BuildHuffmanTable
Affected
1.0, 1.1, 1.2, 1.3 (+89 more)
Fixed in
10.0.1
HIGH
CVE-2026-112900
Pillow: Argument Injection in Ghostscript call, potentially leading into RCE
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+74 more)
Fixed in
13.0.0
CRITICAL
CVE-2026-112393
Pillow: Heap buffer overflow in _tiffWriteProc when saving TIFF to BytesIO
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+87 more)
Fixed in
13.0.0
CRITICAL
CVE-2026-96639
Pillow multi-frame loaders can reuse stale native image storage after mode transitions
Affected
11.0.0, 11.1.0, 11.2.1, 11.3.0 (+5 more)
Fixed in
13.0.0
CRITICAL
CVE-2026-40192
FITS GZIP decompression bomb in Pillow
Affected
10.3.0, 10.4.0, 11.0.0, 11.1.0 (+5 more)
Fixed in
12.2.0
HIGH
CVE-2026-112403
Affected
1.0, 1.1, 1.2, 1.3 (+103 more)
Fixed in
13.0.0
CRITICAL
CVE-2026-112398
Affected
1.0, 1.1, 1.2, 1.3 (+103 more)
Fixed in
13.0.0
CRITICAL
CVE-2026-112902
Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+103 more)
Fixed in
13.0.0, 13.0.0
HIGH
CVE-2026-59199
Pillow: Heap out-of-bounds write `Image.paste()` / `Image.crop()` via signed coordinate overflow
Affected
1.0, 1.1, 1.2, 1.3 (+102 more)
Fixed in
12.3.0
HIGH
CVE-2026-59205
Pillow: Controlled heap out-of-bounds write in Pillow `ImageCmsTransform.apply()` via output mode mismatch
Affected
1.0, 1.1, 1.2, 1.3 (+102 more)
Fixed in
12.3.0
HIGH
CVE-2026-59200
Pillow: Decompression Bomb DoS via PdfParser.PdfStream.decode()
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+44 more)
Fixed in
12.3.0
HIGH
CVE-2026-59204
Pillow JPEG2000 tiled decode retains a growing scratch buffer and can be used for denial of service
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+23 more)
Fixed in
12.3.0
HIGH
CVE-2026-55379
Pillow `BdfFontFile`: `Image.new()` called without `_decompression_bomb_check()` — bomb protection bypass via font loading
Affected
1.0, 1.1, 1.2, 1.3 (+102 more)
Fixed in
12.3.0
HIGH
CVE-2026-112390
Pillow: Infinite loop in MIC n_frames when the embedded TIFF
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+30 more)
Fixed in
13.0.0
HIGH
CVE-2026-54060
Pillow: `FontFile.compile()`: `Image.new()` called without `_decompression_bomb_check()`
Affected
1.0, 1.1, 1.2, 1.3 (+102 more)
Fixed in
12.3.0
HIGH
CVE-2026-112399
Pillow: APNG background disposal allocates full canvas before decompression bomb check
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+27 more)
Fixed in
13.0.0
HIGH
CVE-2026-112400
Pillow: GIF seek keeps rejected size after DecompressionBombError, allowing DoS
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+15 more)
Fixed in
13.0.0
HIGH
CVE-2026-54059
Pillow `PcfFontFile._load_bitmaps()`: `Image.frombytes()` called without `_decompression_bomb_check()` — bomb protection bypass via PCF font loading
Affected
1.0, 1.1, 1.2, 1.3 (+102 more)
Fixed in
12.3.0
HIGH
CVE-2026-112893
Pillow: Invalid free in FreeType glyph rendering when a stroker is active
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+11 more)
Fixed in
13.0.0
HIGH
CVE-2026-55380
Pillow `GdImageFile._open()`: image dimensions accepted without `_decompression_bomb_check()`
Affected
1.0, 1.1, 1.2, 1.3 (+102 more)
Fixed in
12.3.0
HIGH
CVE-2026-112401
Pillow: Quadratic GIF comment concatenation allows DoS in Image.open()
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+41 more)
Fixed in
13.0.0
MEDIUM
CVE-2026-112901
Pillow: ReDoS in XbmImagePlugin: 512-byte file stalls Image.open() for minutes
Affected
1.0, 1.1, 1.2, 1.3 (+103 more)
Fixed in
13.0.0
MEDIUM
CVE-2026-96778
Pillow: Heap buffer overflow writing JPEG comment after ICC profile fills buffer
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+13 more)
Fixed in
13.0.0
HIGH
CVE-2026-112891
Pillow: Quadratic GIF comment copying during save
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+15 more)
Fixed in
13.0.0
MEDIUM
CVE-2026-96640
Pillow PDF append accepts malformed shared page-tree DAG causing resource exhaustion
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+45 more)
Fixed in
13.0.0
HIGH
CVE-2026-112402
Pillow: Double free in ImagingScaleAffine on calloc failure via Image.transform
Affected
1.0, 1.1, 1.2, 1.3 (+103 more)
Fixed in
13.0.0
HIGH
CVE-2026-112894
Pillow: Quadratic-time DoS in PDF save_all (PdfParser.next_object_id)
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+45 more)
Fixed in
13.0.0
HIGH
CVE-2026-112895
Pillow: Unbounded recursion parsing a PDF page tree or trailer chain (incomplete fix for CVE-2026-42310)
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+45 more)
Fixed in
13.0.0
HIGH
CVE-2026-112404
Pillow: OOB read in TiffDecode.c tile and RGBA paths leaks heap memory into pixels
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+27 more)
Fixed in
13.0.0
HIGH
CVE-2026-59197
Pillow: Heap out-of-bounds write in `ImageFilter.RankFilter` via integer overflow in `ImagingExpand`
Affected
1.0, 1.1, 1.2, 1.3 (+102 more)
Fixed in
12.3.0
HIGH
CVE-2026-112394
Pillow: P;2L and P;4L decoders may read 1 to 3 bytes past the passed buffer size
Affected
1.0, 1.1, 1.2, 1.3 (+103 more)
Fixed in
13.0.0
MEDIUM
CVE-2026-112395
Pillow tiled-TIFF decoder reads past tile buffer in copy4 (Unpack.c:1290)
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+24 more)
Fixed in
13.0.0
MEDIUM
CVE-2026-112391
Pillow: PdfParser can recurse without limit in get_value() and linearize_page_tree()
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+45 more)
Fixed in
13.0.0
MEDIUM
CVE-2026-112406
Pillow: Infinite loop in PdfParser.rewrite_pages on page tree Parent cycle
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+45 more)
Fixed in
13.0.0
HIGH
CVE-2026-112397
Pillow: Out-of-bounds access in _imagingmorph on a zero-width image
Affected
1.0, 1.1, 1.2, 1.3 (+103 more)
Fixed in
13.0.0
HIGH
CVE-2026-112899
Pillow: EPS load(scale) lets Ghostscript render past the decompression bomb limit
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+82 more)
Fixed in
13.0.0
MEDIUM
CVE-2026-112392
Pillow: NULL dereference in ImagingExpand via rank filters on zero-size images
Affected
1.0, 1.1, 1.2, 1.3 (+103 more)
Fixed in
13.0.0
HIGH
CVE-2026-128067
Pillow: Heap buffer overflow saving TIFF with libtiff when tags override image size
Affected
1.0, 1.1, 1.2, 1.3 (+103 more)
Fixed in
13.0.0
HIGH
CVE-2026-128066
Pillow: Memory DoS in TIFF and EXIF IFD parsing via overlapping tag data
Affected
1.0, 1.1, 1.2, 1.3 (+103 more)
Fixed in
13.0.0
MEDIUM
CVE-2026-25990
Pillow affected by out-of-bounds write when loading PSD images
Affected
10.3.0, 10.4.0, 11.0.0, 11.1.0 (+4 more)
Fixed in
12.1.1
HIGH
CVE-2026-112892
Pillow: MSP RLE decoder expands a tiny file into unbounded memory
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+51 more)
Fixed in
13.0.0
HIGH
CVE-2026-59198
Pillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+43 more)
Fixed in
12.3.0
MEDIUM
CVE-2026-96644
Pillow: Heap over-read in WMF/EMF rendering via 16-bit dimension truncation (Windows builds)
Affected
1.0, 1.1, 1.2, 1.3 (+103 more)
Fixed in
13.0.0
HIGH
CVE-2026-54058
Pillow: Out-of-bounds read via attacker-controlled row stride on Pillow's mmap path (McIdas AREA files)
Affected
1.0, 1.1, 1.2, 1.3 (+102 more)
Fixed in
12.3.0
HIGH
CVE-2026-112896
Pillow: TIFF encoder ColorMap plane-size mismatch causes a heap out-of-bounds read
Affected
1.0, 1.1, 1.2, 1.3 (+103 more)
Fixed in
13.0.0
HIGH
CVE-2026-96642
Pillow: TarIO negative size field causes infinite CPU-spin loop
Affected
1.0, 1.1, 1.2, 1.3 (+103 more)
Fixed in
13.0.0
HIGH
CVE-2026-96637
Pillow: Decompression bomb check bypass in SpiderImagePlugin.seek() leads to unbounded allocation DoS
Affected
1.0, 1.1, 1.2, 1.3 (+103 more)
Fixed in
13.0.0
HIGH
CVE-2026-96638
Pillow: BMP RLE decoder memory-amplification DoS via unbounded delta escape / absolute mode
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+17 more)
Fixed in
13.0.0
MEDIUM
CVE-2026-96641
Pillow: Reachable undefined behavior in native integer operations, potentially leading to denial of service or logic integrity compromise
Affected
1.0, 1.1, 1.2, 1.3 (+103 more)
Fixed in
13.0.0
MEDIUM
CVE-2026-96636
Pillow: Decompression-bomb protection bypass via multi-frame seek() in MPO and DCX (MpoImageFile.seek / DcxImageFile.seek)
Affected
1.0, 1.1, 1.2, 1.3 (+103 more)
Fixed in
13.0.0
MEDIUM
CVE-2026-112897
Pillow: TiffDecode returns uninitialized memory as pixels for short JPEG strips
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+43 more)
Fixed in
13.0.0
HIGH
CVE-2026-112898
Pillow: Image.quantize() with empty palette leaks uninitialized stack memory
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+17 more)
Fixed in
13.0.0
MEDIUM
CVE-2026-42311
Pillow has an OOB Write with Invalid PSD Tile Extents (Integer Overflow)
Affected
10.3.0, 10.4.0, 11.0.0, 11.1.0 (+5 more)
Fixed in
12.2.0
HIGH
CVE-2026-55798
Pillow: WindowsViewer.get_command() OS command injection via unescaped shell path
Affected
1.0, 1.1, 1.2, 1.3 (+102 more)
Fixed in
12.3.0
MEDIUM
CVE-2026-42310
Pillow has a PDF Parsing Trailer Infinite Loop (DoS)
Affected
10.0.0, 10.0.1, 10.1.0, 10.2.0 (+47 more)
Fixed in
12.2.0
MEDIUM
CVE-2026-42308
Pillow has an integer overflow when processing fonts
Affected
1.0, 1.1, 1.2, 1.3 (+101 more)
Fixed in
12.2.0
MEDIUM

About This Data

Vulnerability data for pillow is sourced from the Open Source Vulnerability (OSV) database, aggregating reports from GitHub Advisory Database, NIST NVD, and ecosystem-specific sources.

CVSS (Common Vulnerability Scoring System) scores reflect exploitability and impact. EPSS (Exploit Prediction Scoring System) scores indicate the probability of exploitation within the next 30 days. Vulnerabilities marked with are listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.

Related PyPI (Python) Packages

Other packages in this ecosystem, ranked by shared vulnerabilities where available.

Check Your Dependencies

Scan your project to check if you're using a vulnerable version of pillow.

Data from OSV DatabaseUpdated daily200K+ vulnerabilities indexed