# CVE-2026-128066: Pillow: Memory DoS in TIFF and EXIF IFD parsing via overlapping tag data

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/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.49%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-12T22:47:44.807Z
- Modified: 2026-11-27T06:55:40.456Z
- Also known as: GHSA-wqgw-9xfh-qf2g, BIT-PILLOW-2026-128066
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Pillow is a Python imaging library. From 1.0 through 12.3.0, ImageFileDirectory_v2.load() in src/PIL/TiffImagePlugin.py retains a separate bytes object for each out-of-line IFD tag value without limiting the total data read or preventing distinct tags from referencing the same file region. A small crafted TIFF or EXIF-bearing JPEG, PNG, WebP, or MPO can therefore cause memory use quadratic in the input size. TIFF and some JPEG paths trigger parsing during Image.open(), while other formats are exposed when EXIF is requested, including through getexif() or ImageOps.exif_transpose(). The declared pixel dimensions do not bound this metadata allocation, so decompression-bomb checks do not prevent process memory exhaustion. This issue is fixed in version 13.0.0.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- GitHub: rating Medium
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-wqgw-9xfh-qf2g> (exploit, web)
- <https://github.com/python-pillow/Pillow/commit/4908edaf7f416616784c7c03d8c1a60153710ffb> (web)
- <https://github.com/python-pillow/Pillow/commit/4b63dffd8a6d980fa0e21b40832fa6cbf033eacf> (web)
- <https://github.com/python-pillow/Pillow/releases/tag/13.0.0> (web)
- <https://github.com/python-pillow/Pillow> (package)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-128066> (web)

## Sources

- CVE List: [CVE-2026-128066](https://www.cve.org/CVERecord?id=CVE-2026-128066), CVE Terms of Use, modified 2026-11-17
- GitHub Advisory Database: [GHSA-wqgw-9xfh-qf2g](https://github.com/advisories/GHSA-wqgw-9xfh-qf2g), CC-BY-4.0, modified 2026-11-27
- NVD: [CVE-2026-128066](https://nvd.nist.gov/vuln/detail/CVE-2026-128066), Public domain, modified 2026-11-17
- Bitnami Vulnerability Database: [BIT-PILLOW-2026-128066](https://osv.dev/vulnerability/BIT-PILLOW-2026-128066), Apache-2.0, modified 2026-11-27

---

Page: https://cve.day/CVE-2026-128066 · Whole record: https://cve.day/CVE-2026-128066.json · Rebuilt by cve.day 2026-11-27T07:07:41.213Z
