smalot/pdfparser before 2.14.0 Quadratic-Time DoS via formatContent()
- State
- Published
- Severity
- 8.7 High
- Published
- Nov 27, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 20, 2026
Description
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.
| Product | Versions |
|---|---|
| pdfparser smalot | before 2.14.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.7 High | VulnCheck | |
| 3.1 | 7.5 High | VulnCheck |
Weaknesses
- CWE-407 Inefficient Algorithmic Complexity
References
- pdfparser v2.14.0 Release NotesPatchRelease Notes
- GitHub Security Advisory (GHSA-4w9h-57gf-h3px)Vendor AdvisoryExploitTechnical Details
- Fix CommitIssue TrackerPatch
- VulnCheck Advisory: smalot/pdfparser before 2.14.0 Quadratic-Time DoS via formatContent()Third-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.