---
title: "python-pillow/Pillow: functions and files changed by CVE fixes"
url: https://radicalnotion.ai/fixes/python-pillow/pillow
type: fixes-repository
description: "109 CVE fixes in python-pillow/Pillow changed 137 functions across 81 files."
updated: 2026-11-12
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# python-pillow/Pillow: patched functions

- **CVEs with a located fix:** 109
- **Functions patched:** 137
- **Files patched:** 81
- **Diff hunks:** 709
- **Languages:** python, c, shell
- **Rank by CVE fixes:** 36 of 12,140
- **First fix:** 2014-08-25
- **Latest fix:** 2026-11-12
- **Repository:** [https://github.com/python-pillow/Pillow](https://github.com/python-pillow/Pillow)

## Typical fix size

- Median lines changed per fix: 14
- Fixes touching a single function: 46%
- Fixes under 20 changed lines: 59%

## Most-patched functions

| Function | File | CVEs | Patches | Last fixed |
| --- | --- | --- | --- | --- |
| [show\_file](https://radicalnotion.ai/fixes/python-pillow/pillow/show_file) | src/PIL/ImageShow.py | 2 | 7 | 2026-07-06 |
| [expandrow](https://radicalnotion.ai/fixes/python-pillow/pillow/expandrow) | src/libImaging/SgiRleDecode.c | 3 | 5 | 2021-03-19 |
| [expandrow2](https://radicalnotion.ai/fixes/python-pillow/pillow/expandrow2) | src/libImaging/SgiRleDecode.c | 3 | 5 | 2021-03-19 |
| [j2k\_decode\_entry](https://radicalnotion.ai/fixes/python-pillow/pillow/j2k_decode_entry) | src/libImaging/Jpeg2KDecode.c | 6 | 4 | 2026-07-14 |
| [getmask2](https://radicalnotion.ai/fixes/python-pillow/pillow/getmask2) | src/PIL/ImageFont.py | 6 | 4 | 2023-11-03 |
| [\_seek](https://radicalnotion.ai/fixes/python-pillow/pillow/_seek) | src/PIL/GifImagePlugin.py | 4 | 4 | 2026-10-19 |
| [ImagingLibTiffDecode](https://radicalnotion.ai/fixes/python-pillow/pillow/ImagingLibTiffDecode) | src/libImaging/TiffDecode.c | 4 | 4 | 2021-03-19 |
| [seek](https://radicalnotion.ai/fixes/python-pillow/pillow/seek) | src/PIL/MpoImagePlugin.py | 3 | 4 | 2026-10-21 |
| [seek](https://radicalnotion.ai/fixes/python-pillow/pillow/seek) | src/PIL/DcxImagePlugin.py | 3 | 4 | 2026-10-21 |
| [seek](https://radicalnotion.ai/fixes/python-pillow/pillow/seek) | src/PIL/MicImagePlugin.py | 3 | 4 | 2026-10-21 |
| [\_setimage](https://radicalnotion.ai/fixes/python-pillow/pillow/_setimage) | src/decode.c | 3 | 4 | 2026-10-19 |
| [get\_command](https://radicalnotion.ai/fixes/python-pillow/pillow/get_command) | src/PIL/ImageShow.py | 2 | 4 | 2026-07-06 |
| [PyImaging\_LibTiffEncoderNew](https://radicalnotion.ai/fixes/python-pillow/pillow/PyImaging_LibTiffEncoderNew) | src/encode.c | 2 | 3 | 2026-11-05 |
| [\_save](https://radicalnotion.ai/fixes/python-pillow/pillow/_save) | src/PIL/TiffImagePlugin.py | 2 | 3 | 2026-11-05 |
| [Ghostscript](https://radicalnotion.ai/fixes/python-pillow/pillow/Ghostscript) | src/PIL/EpsImagePlugin.py | 2 | 3 | 2026-11-05 |

## Most-patched files

| File | CVEs | Functions |
| --- | --- | --- |
| src/libImaging/TiffDecode.c | 13 | 8 |
| src/PIL/PdfParser.py | 8 | 9 |
| src/PIL/BlpImagePlugin.py | 8 | 3 |
| src/PIL/EpsImagePlugin.py | 8 | 3 |
| src/libImaging/FliDecode.c | 8 | 1 |
| src/libImaging/Jpeg2KDecode.c | 7 | 1 |
| src/PIL/ImageFont.py | 6 | 5 |
| src/PIL/PsdImagePlugin.py | 6 | 3 |
| src/PIL/ImageFile.py | 6 | 2 |
| src/PIL/TiffImagePlugin.py | 5 | 7 |

## Latest CVE fixes

| CVE | Title | Severity | CVSS | CISA KEV | Functions changed | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-128067 | Pillow: Heap buffer overflow saving TIFF with libtiff when tags override image size | high | 8.4 | No | - | 2026-11-12 |
| CVE-2026-128066 | Pillow: Memory DoS in TIFF and EXIF IFD parsing via overlapping tag data | high | 8.7 | No | load, \_open, \_\_init\_\_ | 2026-11-12 |
| CVE-2026-112902 | Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags | high | 8.8 | No | tiff\_scalar\_arg\_type, PyImaging\_LibTiffEncoderNew, \_save | 2026-11-05 |
| CVE-2026-112899 | Pillow: EPS load(scale) lets Ghostscript render past the decompression bomb limit | medium | 6.9 | No | Ghostscript | 2026-11-05 |
| CVE-2026-114501 | Pillow: Arrow export leaks stale heap memory when PILLOW\_ALIGNMENT \> 1 | medium | 6.3 | No | is\_contiguous, export\_single\_channel\_array, ArrowError | 2026-10-21 |
| CVE-2026-96639 | Pillow multi-frame loaders can reuse stale native image storage after mode transitions | critical | 9.8 | No | seek, SOF, seek | 2026-10-21 |
| CVE-2026-96636 | Pillow: Decompression-bomb protection bypass via multi-frame seek() in MPO and DCX (MpoImageFile.seek / DcxImageFile.seek) | medium | 6.5 | No | seek, seek, seek | 2026-10-21 |
| CVE-2026-96640 | Pillow PDF append accepts malformed shared page-tree DAG causing resource exhaustion | high | 8.2 | No | linearize\_page\_tree, read\_pdf\_info | 2026-10-21 |
| CVE-2026-96637 | Pillow: Decompression bomb check bypass in SpiderImagePlugin.seek() leads to unbounded allocation DoS | high | 7.1 | No | seek | 2026-10-21 |
| CVE-2026-96778 | Pillow: Heap buffer overflow writing JPEG comment after ICC profile fills buffer | high | 7.7 | No | validate\_qtables, ImagingJpegEncode | 2026-10-21 |
| CVE-2026-96643 | Pillow: PNG eXIf chunk makes EXIF parsing run in quadratic time | high | 7.1 | No | load | 2026-10-21 |
| CVE-2026-96644 | Pillow: Heap over-read in WMF/EMF rendering via 16-bit dimension truncation (Windows builds) | high | 7.1 | No | load, PyImaging\_DrawWmf, register\_handler | 2026-10-21 |

## Frequently asked questions

### How many CVEs have a located fix in python-pillow/Pillow?

109 published CVEs have a fix traced to functions in python-pillow/Pillow, touching 137 functions across 81 files.

### Which function in python-pillow/Pillow has been patched most often?

show\_file in src/PIL/ImageShow.py has been changed by 7 distinct patches, fixing 2 CVEs, from 2022 to 2026.

### How large is a typical CVE fix in python-pillow/Pillow?

The median fix changes 14 lines. 59% of fixes change 20 lines or fewer, and 46% change a single function.

### How is a fix located to a function?

The upstream fix commit for each CVE is fetched and its diff is split into hunks. Each hunk is attributed to the function, method or type it changes, using the definition the diff itself names. Backports of the same fix to stable branches are counted once.

## Similar repositories

- [openssl/openssl](https://radicalnotion.ai/fixes/openssl/openssl) (109 CVEs)
- [nextcloud/server](https://radicalnotion.ai/fixes/nextcloud/server) (112 CVEs)
- [rails/rails](https://radicalnotion.ai/fixes/rails/rails) (114 CVEs)
- [wolfSSL/wolfssl](https://radicalnotion.ai/fixes/wolfssl/wolfssl) (114 CVEs)
- [chamilo/chamilo-lms](https://radicalnotion.ai/fixes/chamilo/chamilo-lms) (104 CVEs)
- [InternationalColorConsortium/iccDEV](https://radicalnotion.ai/fixes/internationalcolorconsortium/iccdev) (104 CVEs)
- [craftcms/cms](https://radicalnotion.ai/fixes/craftcms/cms) (103 CVEs)
- [mantisbt/mantisbt](https://radicalnotion.ai/fixes/mantisbt/mantisbt) (103 CVEs)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/fixes/python-pillow/pillow). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
