Skip to main content
← All vulnerabilities
CVE-2026-96643GHSA-G4QV-2JXX-769HEUVD-2026-107564PYSEC-2026-4342

Pillow: PNG eXIf chunk makes EXIF parsing run in quadratic time

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 13.0.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

Pillow is a Python imaging library. From 11.0.0 until 13.0.0, Exif.load() in src/PIL/Image.py repeatedly slices the remaining EXIF data while it begins with the six-byte Exif header. src/PIL/PngImagePlugin.py accepts an uncapped PNG eXIf chunk, so a file filled with repeated headers causes a new shrinking copy on every iteration and quadratic CPU work. The condition is reachable through Image.getexif(), Image._getexif(), and ImageOps.exif_transpose(), including common photo-upload rotation workflows. This issue is fixed in version 13.0.0.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  4. Record last updated

Affected versions

  • python-pillow Pillow

    From 11.0.0 · fixed in 13.0.0

  • pillowPyPI

    From 11.0.0 · fixed in 13.0.0

References 4

GitHub · python-pillow/Pillow