CVE-2026-134129

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

Published Nov 27, 2026 CVSS 4.0 · 8.7 High EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to version 2.14.0 or newer of the smalot pdfparser library.
  • If an upgrade is not immediately possible, restrict the file size of PDFs accepted or reject untrusted PDFs before passing them to pdfparser.
  • As a temporary measure, increase PHP worker timeout settings or isolate PDF processing in a separate process to limit the impact of resource exhaustion.

Generated by OpenCVE AI on November 27, 2026 at 19:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Smalot
Smalot pdfparser
Vendors & Products Smalot
Smalot pdfparser
Type Values Removed Values Added
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.
Title smalot/pdfparser before 2.14.0 Quadratic-Time DoS via formatContent()
Weaknesses CWE-407
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 8.7, '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'}

Weaknesses
  • CWE-407

    Inefficient Algorithmic Complexity

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 27, 2026, 6:30 PM
Reserved
Nov 20, 2026, 9:04 PM
Status
Received
Published
Nov 27, 2026, 7:16 PM
Modified
Nov 27, 2026, 7:16 PM