Read the docs

Memory exhaustion in Pillow TIFF and EXIF parsing via crafted images

Priority LOW 38CWE-770Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-770.

Summary

Pillow from 1.0 before 13.0.0 is affected. The load() method of ImageFileDirectory_v2 keeps a separate bytes object for each out-of-line tag value without limiting total data read (CWE-770). A remote attacker with no privileges and no user interaction can supply a small crafted TIFF or EXIF-bearing image to exhaust process memory, since decompression-bomb checks do not bound this metadata.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

Description from the CNA

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.

Why it matters now

EPSS 0.00377 32nd percentileScored 2026-11-16
Fix Fixed Pillow (python-pillow): 13.0.0Pillow (PyPI): 13.0.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
python-pillowPillow1.0 to before 13.0.013.0.0Patch availableCNA
—Pillow (PyPI)before 13.0.013.0.0Patch availableGHSA-wqgw-9xfh-qf2g
  • Pillow Vendorpython-pillow Affected 1.0 to before 13.0.0 Fixed in 13.0.0 Patch available CNA
  • Pillow (PyPI) Vendor— Affected before 13.0.0 Fixed in 13.0.0 Patch available GHSA-wqgw-9xfh-qf2g

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*——python-pillow
  • cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* Versions — — ·python-pillow

Remediation

Upgrade Pillow to version 13.0.0.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

  • Fix · CNA Pillow (python-pillow) Fixed in 13.0.0
  • Fix · GHSA-wqgw-9xfh-qf2g Pillow (PyPI) Fixed in 13.0.0 Advisory →

Timeline

  1. 2026-11-12 Threatist record created from CVE-2026-128066
  2. 2026-11-13 Alias added: GHSA-wqgw-9xfh-qf2g
  3. 2026-11-13 Fix available: PyPI/[email protected] · GHSA-wqgw-9xfh-qf2g
  4. 2026-11-13 Weakness changed · GHSA-wqgw-9xfh-qf2g
  5. 2026-11-13 5 new references · GHSA-wqgw-9xfh-qf2g

References

  • TI-2016-01993 The DES and Triple DES ciphers, as used in the TLS, SSH, and IPSec protocols and other… CVSS 3.1HIGH 7.5
  • TI-2022-24108 An XML External Entity (XXE) issue was discovered in Python through 3.9.1. CVSS 3.1CRITICAL 9.8
  • TI-2022-17508 The Keccak XKCP SHA-3 reference implementation before fdc6fef has an integer overflow and… CVSS 3.1CRITICAL 9.8
  • TI-2021-02254 Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c… CVSS 3.1CRITICAL 9.8
  • TI-2007-04413 Directory traversal vulnerability in the (1) extract and (2) extractall functions in the… CVSS 3.1CRITICAL 9.8
  • TI-2026-76627 Out-of-bounds read in Pillow TIFF encoder ColorMap handling CVSS 4.0HIGH 8.8
See all 320 →

Sources