# CVE-2026-59200: Pillow: Decompression Bomb DoS via PdfParser.PdfStream.decode()

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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.39%, higher than 34% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-14T16:09:05.091Z
- Modified: 2026-10-24T21:10:00.130Z
- Also known as: GHSA-jjj6-mw9f-p565, BIT-PILLOW-2026-59200, PYSEC-2026-3495
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Pillow is a Python imaging library. From 5.1.0 until 12.3.0, PdfParser.PdfStream.decode() in PIL/PdfParser.py calls zlib.decompress() with bufsize set to the PDF stream Length field without bounding the decompressed output size, allowing a crafted FlateDecode PDF stream to exhaust memory from a small file. This issue is fixed in version 12.3.0.

(As written by CVE List.)

## Affected

- python-pillow Pillow: >= 5.1.0, < 12.3.0
- pillow (PyPI): from 5.1.0 before 12.3.0
- python pillow: from 5.1.0 before 12.3.0
- pillow (Bitnami): from 5.1.0 before 12.3.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-jjj6-mw9f-p565> (exploit, advisory, vendor-advisory, web)
- <https://github.com/python-pillow/Pillow/pull/9718> (fix, issue-tracking, patch, web)
- <https://github.com/python-pillow/Pillow/commit/f7a31ea75e460e108c37126da1f47812f21f6b09> (fix, patch, web)
- <https://github.com/python-pillow/Pillow/releases/tag/12.3.0> (article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59200> (advisory, web)
- <https://github.com/python-pillow/Pillow> (package)
- <https://pypi.org/project/pillow> (package)
- <https://github.com/advisories/GHSA-jjj6-mw9f-p565> (advisory)

## Sources

- CVE List: [CVE-2026-59200](https://www.cve.org/CVERecord?id=CVE-2026-59200), CVE Terms of Use, modified 2026-07-14
- GitHub Advisory Database: [GHSA-jjj6-mw9f-p565](https://github.com/advisories/GHSA-jjj6-mw9f-p565), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-59200](https://nvd.nist.gov/vuln/detail/CVE-2026-59200), Public domain, modified 2026-10-24
- PyPA Advisory Database: [PYSEC-2026-3495](https://osv.dev/vulnerability/PYSEC-2026-3495), CC-BY-4.0, modified 2026-07-23
- Bitnami Vulnerability Database: [BIT-PILLOW-2026-59200](https://osv.dev/vulnerability/BIT-PILLOW-2026-59200), Apache-2.0, modified 2026-09-08

---

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