# CVE-2026-96643: Pillow: PNG eXIf chunk makes EXIF parsing run in quadratic time

- Severity: High 7.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 33% of CVEs (2026-12-01)
- Published: 2026-10-21T20:56:26.344Z
- Modified: 2026-10-29T10:55:44.091Z
- Also known as: GHSA-g4qv-2jxx-769h, BIT-PILLOW-2026-96643, PYSEC-2026-4342
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- python-pillow Pillow: >= 11.0.0, < 13.0.0
- pillow (PyPI): from 11.0.0 before 13.0.0
- python pillow: from 11.0.0 before 13.0.0
- pillow (Bitnami): from 11.0.0 before 13.0.0

## Every score

- GitHub_M: CVSS:4.0 7.1 High `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`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-g4qv-2jxx-769h> (advisory, vendor-advisory, web)
- <https://github.com/python-pillow/Pillow/pull/10073> (issue-tracking, report, web)
- <https://github.com/python-pillow/Pillow/commit/806e38381c781f32bbd22f4cd026678acd40fd6c> (fix, patch, web)
- <https://github.com/python-pillow/Pillow/releases/tag/13.0.0> (advisory, article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-96643> (advisory, web)
- <https://github.com/python-pillow/Pillow> (package)

## Sources

- CVE List: [CVE-2026-96643](https://www.cve.org/CVERecord?id=CVE-2026-96643), CVE Terms of Use, modified 2026-10-23
- GitHub Advisory Database: [GHSA-g4qv-2jxx-769h](https://github.com/advisories/GHSA-g4qv-2jxx-769h), CC-BY-4.0, modified 2026-10-29
- NVD: [CVE-2026-96643](https://nvd.nist.gov/vuln/detail/CVE-2026-96643), Public domain, modified 2026-10-27
- PyPA Advisory Database: [PYSEC-2026-4342](https://osv.dev/vulnerability/PYSEC-2026-4342), CC-BY-4.0, modified 2026-10-29
- Bitnami Vulnerability Database: [BIT-PILLOW-2026-96643](https://osv.dev/vulnerability/BIT-PILLOW-2026-96643), Apache-2.0, modified 2026-10-29

---

Page: https://cve.day/CVE-2026-96643 · Whole record: https://cve.day/CVE-2026-96643.json · Rebuilt by cve.day 2026-11-25T22:59:46.697Z
