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.
Fix
Patch, vendor advisory and mitigation references on NVD 2
- https://github.com/python-pillow/Pillow/commit/806e38381c781f32bbd22f4cd026678acd40fd6c Patch
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-g4qv-2jxx-769h Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 9
- Cpes+1 CPE criteria (now 1)NVD modified 2026-10-27 14:26
- StatusPublished → AnalyzedNVD modified 2026-10-27 14:26
- StatusUndergoing Analysis → PublishedNVD modified 2026-10-23 21:19
- StatusAwaiting Analysis → Undergoing AnalysisNVD modified 2026-10-23 22:17
- StatusPublished → Awaiting AnalysisNVD modified 2026-10-22 16:46
- StatusReceived → PublishedNVD modified 2026-10-21 20:56
- StatusPublished → ReceivedNVD modified 2026-10-21 21:20
- CVSS7.1 (v4.0, CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N) → 7.1 (v4.0, CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X)NVD modified 2026-10-21 21:20
- First seenCVSS 7.1 · python-pillowNVD modified 2026-10-21 20:56
Affected (CPE criteria) 1
cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*
References 4
- https://github.com/python-pillow/Pillow/commit/806e38381c781f32bbd22f4cd026678acd40fd6c Patch
- https://github.com/python-pillow/Pillow/pull/10073 Issue Tracking
- https://github.com/python-pillow/Pillow/releases/tag/13.0.0 Release Notes
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-g4qv-2jxx-769h Vendor Advisory