CVE-2026-134129: smalot/pdfparser before 2.14.0 Quadratic-Time DoS via formatContent()
smalot/pdfparser before 2.14.0 contains an inefficient algorithmic complexity vulnerability that allows remote attackers to cause a denial of service by submitting a crafted PDF with deeply nested unbalanced parentheses in a content-stream string. Attackers can exploit the regex-based string isolation loop in PDFObject::formatContent(), which rescans growing content on each pass to produce O(n^2) processing time, causing a small PDF to stall or exhaust PHP worker resources for seconds to minutes.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed?
Applications that process remotely supplied PDFs using smalot/pdfparser versions before 2.14.0 are exposed. PHP worker-based processing is specifically at risk of being stalled or exhausted during parsing.
What does an attacker need to exploit this issue?
An attacker needs to submit a crafted PDF containing deeply nested, unbalanced parentheses in a content-stream string. The supplied severity vector indicates no privileges or user interaction are required.
How can I determine whether an installation is affected?
Check the installed smalot/pdfparser version. Versions earlier than 2.14.0 are affected; version 2.14.0 is the referenced fixed release.