CVE-2026-96643
HIGH 7.1CVSS 4.0Pillow: PNG eXIf chunk makes EXIF parsing run in quadratic time
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.
- Published
- 21 Oct 2026
- Last modified
- 29 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-407
- Also known as
- BIT-pillow-2026-96643GHSA-g4qv-2jxx-769hPYSEC-2026-4342
- Sources
- NVDJSONOSV GHSA-g4qv-2jxx-769hJSONOSV PYSEC-2026-4342JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.1 | 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 |
| OSV | GitHub | CVSS 4.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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | python | pillowcpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* |
>= 11.0.0, < 13.0.0 | 13.0.0 |
| OSV | PyPI | pillow | >= 11.0.0, < 13.0.0 | 13.0.0 |
References
- https://github.com/python-pillow/Pillow/commit/806e38381c781f32bbd22f4cd026678acd40fd6c · Patch, WEB, FIX
- https://github.com/python-pillow/Pillow/pull/10073 · Issue Tracking, WEB, REPORT
- https://github.com/python-pillow/Pillow/releases/tag/13.0.0 · Release Notes, WEB, ADVISORY
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-g4qv-2jxx-769h · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-96643 · ADVISORY
- https://github.com/python-pillow/Pillow · PACKAGE
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 21 Oct 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 21 Oct 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 22 Oct 2026)