CVE-2026-59200
Pillow is a Python imaging library. From 5.1.0 until 12.3.0, …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/python-pillow/Pillow/commit/f7a31ea75e460e108c37126da1f47812f21f6b09
- github.com/python-pillow/Pillow/pull/9718
- github.com/python-pillow/Pillow/releases/tag/12.3.0
- github.com/python-pillow/Pillow/security/advisories/GHSA-jjj6-mw9f-p565
- nvd.nist.gov/vuln/detail/CVE-2026-59200
- github.com/advisories/GHSA-jjj6-mw9f-p565
- nvd.nist.gov/vuln/detail/CVE-2026-59200
- cve.org/CVERecord?id=CVE-2026-59200
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.