Technical impact
smalot pdfparser before version 2.14.0 has an inefficient loop that rescans a PDF content stream after each regex match. A crafted file containing deeply nested unbalanced parentheses forces the parser to process the same bytes repeatedly, leading to O(n²) time and significant CPU usage. The result is a denial of service; a single PDF can stall or exhaust PHP worker resources for seconds to minutes.
Affected Systems
The vulnerability affects the smalot pdfparser library for PHP when used in any application that processes external PDFs via the formatContent() method. All releases prior to 2.14.0 are affected. No specific vendor or OS exclusion is noted.
Risk and Exploitability
The CVSS score of 8.7 reflects the high impact and the lack of authentication requirement. With no mitigation from the PHP runtime, a remote attacker can upload a malicious PDF to any endpoint utilizing pdfparser. There is no evidence of data leakage or code execution, but the high resource consumption can bring service disruptions. The EPSS score is not available, and the vulnerability is not listed in CISA KEV. The likely attack path is simple: send a crafted PDF to a vulnerable parser without prior validation.