Quadratic-time denial of service in smalot pdfparser via formatContent()
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-407.
Summary
smalot/pdfparser before 2.14.0 contains an inefficient algorithmic complexity flaw. Its regex-based string isolation loop in PDFObject::formatContent() rescans growing content on each pass, which lets a remote attacker submit a crafted PDF with deeply nested unbalanced parentheses and cause a denial of service (CWE-407). A small PDF can stall or exhaust PHP worker resources for seconds to minutes. A public exploit is linked in the references.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade smalot/pdfparser to version 2.14.0 or later.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA pdfparser (smalot) Fixed in 2.14.0
Timeline
- 2026-11-27 Threatist record created from CVE-2026-134129
- 2026-11-30 CISA SSVC decision points changed
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences