{"id":"CVE-2026-59200","published":"2026-07-14T16:09:05Z","modified":"2026-07-14T19:52:06Z","title":"Pillow: Decompression Bomb DoS via PdfParser.PdfStream.decode()","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00385,"percentile":0.33481,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-jjj6-mw9f-p565","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/pull/9718","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/commit/f7a31ea75e460e108c37126da1f47812f21f6b09","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/12.3.0","tags":["x_refsource_MISC"]}],"priority":{"score":11.9,"factors":[{"name":"EPSS percentile","points":6.7},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":[">= 5.1.0, < 12.3.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-14T19:43:40.467012Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Pillow","vulnerableRanges":[">=5.1.0, <12.3.0"],"patched":["12.3.0"],"from":["GHSA-jjj6-mw9f-p565","PYSEC-2026-3495"],"provenance":"source"}],"summary":{"text":"The Pillow imaging library's PdfParser.PdfStream.decode() function in PIL/PdfParser.py, in versions from 5.1.0 through 12.3.0, decompresses FlateDecode PDF streams without bounding the decompressed output size. An attacker who can supply a crafted PDF to a Pillow process can exhaust its memory from a small file, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:51:12Z"},"euvd":{"id":"EUVD-2026-43753","exploited":false,"provenance":"source"}}