{"id":"CVE-2026-42310","published":"2026-05-09T04:10:48Z","modified":"2026-05-12T18:31:10Z","title":"Pillow: PDF Parsing Trailer Infinite Loop (DoS)","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"Pillow is a Python imaging library. From version 4.2.0 to before version 12.2.0, an attacker can supply a malicious PDF that causes the process to hang indefinitely, consuming 100% CPU and making the application unresponsive. This issue has been patched in version 12.2.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00171,"percentile":0.0672,"provenance":"source"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-r73j-pqj5-w3x7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/pull/9519","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/commit/3bf614e4b8615d0ce1d5039efaf6db447fe7c468","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/12.2.0","tags":["x_refsource_MISC"]}],"priority":{"score":4.9,"factors":[{"name":"EPSS percentile","points":1.34},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":[">= 4.2.0, < 12.2.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-12T13:33:37.176930Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pillow","vulnerableRanges":[">=4.2.0, <12.2.0"],"patched":["12.2.0"],"from":["GHSA-r73j-pqj5-w3x7","PYSEC-2026-2874"],"provenance":"source"}],"summary":{"text":"Pillow, the Python imaging library, contains an infinite loop flaw in its PDF parsing trailer handling. An attacker who can supply a malicious PDF to an application using the affected component can make the process hang indefinitely at full CPU, rendering the application unresponsive, with no authentication or user interaction required and only local access needed to deliver the file.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:43Z"},"euvd":{"id":"EUVD-2026-28902","exploited":false,"provenance":"source"}}