Skip to content
OpenAdvisories
High · 8.7 CVE-2026-128066 EUVD-2026-124777GHSA-wqgw-9xfh-qf2g

Pillow: Memory DoS in TIFF and EXIF IFD parsing via overlapping tag data

Published Nov 12, 2026 · Assigned by GitHub_M

Description

Pillow is a Python imaging library. From 1.0 through 12.3.0, ImageFileDirectory_v2.load() in src/PIL/TiffImagePlugin.py retains a separate bytes object for each out-of-line IFD tag value without limiting the total data read or preventing distinct tags from referencing the same file region. A small crafted TIFF or EXIF-bearing JPEG, PNG, WebP, or MPO can therefore cause memory use quadratic in the input size. TIFF and some JPEG paths trigger parsing during Image.open(), while other formats are exposed when EXIF is requested, including through getexif() or ImageOps.exif_transpose(). The declared pixel dimensions do not bound this metadata allocation, so decompression-bomb checks do not prevent process memory exhaustion. This issue is fixed in version 13.0.0.

Affected products

VendorProductAffectedFixed
python-pillow Pillow >= 1.0, < 13.0.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 pillow No fix yet —
Ubuntu 26.04 LTS pillow No fix yet —
Ubuntu 24.04 LTS pillow No fix yet —
Ubuntu 22.04 LTS pillow No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS pillow +1 No fix yet —
Ubuntu Pro 18.04 LTS pillow No fix yet —
Ubuntu Pro 16.04 LTS pillow No fix yet —
Ubuntu Pro 14.04 LTS pillow No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling open-webui No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pillow < 13.0.0 13.0.0 GHSA-wqgw-9xfh-qf2g

References