CVE-2026-134129 PUBLISHED

smalot/pdfparser before 2.14.0 Quadratic-Time DoS via formatContent()

Assigner: VulnCheck
Reserved: 20.11.2026 Published: 27.11.2026 Updated: 27.11.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
CVSS Score: 8.7

Product Status

Vendor smalot
Product pdfparser
Versions Default: unaffected
  • affected from 0 to 2.14.0 (excl.)

Credits

  • Muhammadyusuf Dilmurodov (agrresore) finder

References

Problem Types

  • Inefficient Algorithmic Complexity CWE