{"id":"CVE-2026-96643","published":"2026-10-21T20:56:26Z","modified":"2026-10-23T21:19:12Z","title":"Pillow: PNG eXIf chunk makes EXIF parsing run in quadratic time","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00373,"percentile":0.32074,"provenance":"source"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-g4qv-2jxx-769h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/pull/10073","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/commit/806e38381c781f32bbd22f4cd026678acd40fd6c","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":11.4,"factors":[{"name":"EPSS percentile","points":6.41},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":[">= 11.0.0, < 13.0.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-23T17:32:48.986807Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Pillow","vulnerableRanges":[">=11.0.0, <13.0.0"],"patched":["13.0.0"],"from":["GHSA-g4qv-2jxx-769h","PYSEC-2026-4342"],"provenance":"source"}],"summary":{"text":"Pillow, the Python imaging library, has a flaw in its PNG and EXIF handling (versions 11.0.0 through 12.x, fixed in 13.0.0): Exif.load() repeatedly copies the remaining EXIF data while it begins with the Exif header, and PngImagePlugin accepts an uncapped eXIf chunk, so a crafted PNG full of repeated headers causes quadratic CPU consumption. An attacker who can get a crafted PNG processed through Image.getexif(), Image._getexif() or ImageOps.exif_transpose(), such as via a photo-upload or rotation workflow, can exhaust CPU, and this requires some user interaction to trigger the processing.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:47:57Z"},"euvd":{"id":"EUVD-2026-107564","exploited":false,"provenance":"source"}}