{"cve":"CVE-2026-59200","nvd":{"published":"2026-07-14T17:17:14.620","modified":"2026-10-24T21:10:00.130","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-400","CWE-770"],"references":["https://github.com/python-pillow/Pillow/commit/f7a31ea75e460e108c37126da1f47812f21f6b09","https://github.com/python-pillow/Pillow/pull/9718","https://github.com/python-pillow/Pillow/releases/tag/12.3.0","https://github.com/python-pillow/Pillow/security/advisories/GHSA-jjj6-mw9f-p565","https://github.com/python-pillow/Pillow/security/advisories/GHSA-jjj6-mw9f-p565"],"products":["python:pillow"],"source":"nvd","synced_at":"2026-10-25T17:50:06.907763985+00:00"},"epss":{"cve":"CVE-2026-59200","score":0.00385,"percentile":0.32323,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-jjj6-mw9f-p565","url":"https://osv.dev/vulnerability/GHSA-jjj6-mw9f-p565","summary":"Pillow: Decompression Bomb DoS via PdfParser.PdfStream.decode()","modified":"2026-09-10T03:50:12.341825852Z","packages":[{"ecosystem":"PyPI","name":"pillow","purl":"pkg:pypi/pillow","ranges":[">=5.1.0 <12.3.0"],"fixed":["12.3.0"]}]},{"id":"PYSEC-2026-3495","url":"https://osv.dev/vulnerability/PYSEC-2026-3495","summary":"Pillow: Decompression Bomb DoS via PdfParser.PdfStream.decode()","modified":"2026-07-23T15:11:28.034031834Z","packages":[{"ecosystem":"PyPI","name":"pillow","purl":"pkg:pypi/pillow","ranges":[">=5.1.0 <12.3.0"],"fixed":["12.3.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}