Skip to main content

smalot/pdfparser EUVDEUVD-2026-137485

| CVE-2026-134129 HIGH
Inefficient Algorithmic Complexity (CWE-407)
2026-11-27 VulnCheck
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted PDF to extraction endpoint
  2. Delivery
    Application invokes getText()/formatContent()
  3. Exploit
    Regex rescans unbalanced parentheses O(n²)
  4. Execution
    PHP worker CPU consumed for minutes
  5. Impact
    Worker pool exhausted, denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
Exploitation Conditions

Exploitation requires that the target application pass attacker-controlled PDFs to smalot/pdfparser's public text-extraction API (Parser::parseFile()/parseContent() → getText()/getTextArray()) on a version before 2.14.0; the vulnerable path is formatContent()'s regex-based string/inline-image/marked-content isolation. No special product configuration, authentication, or user interaction is needed (PR:N, UI:N) and default behavior is affected - the only prerequisite is that untrusted PDFs are actually processed for text. The key limiting factor is therefore deployment-specific: applications that only parse trusted/internal PDFs, or that do not call the text-extraction API, are not realistically exposed, and impact is confined to availability (no data disclosure or modification).

Impact

This is a genuine but bounded availability-only risk. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) describes remote, low-complexity, unauthenticated reachability with VA:H and VC/VI:N - consistent with the CWE-407 algorithmic-complexity (O(n²)) DoS in PDFObject::formatContent() confirmed by the vendor and the GHSA advisory. The severity 8.7 is driven entirely by the ease of reaching the sink and the total availability impact, not by any confidentiality or integrity effect. No EPSS score and no CISA KEV entry were supplied, and the vuln.today priority is 'this_week' (not act_now/emergency), so there is no signal of active or widespread exploitation - this is a prioritize-and-patch item, not a fire drill. A PoC reference exists (the GHSA advisory contains a build-and-time script) but the input labels it as not verified as working exploit code, so POC availability must not be read as active exploitation. The practical risk is high specifically for services that run text extraction on untrusted PDFs, where a sub-kilobyte FlateDecode file can burn a minute of CPU and tie up a PHP worker; for applications that never process attacker-supplied PDFs the real risk is negligible despite the high base score. Missing signals: EPSS and KEV status are absent from the input and cannot be confirmed either way.

Exploit ScenarioDerived

An attacker uploads or submits a small crafted PDF (as little as ~520 bytes with FlateDecode) whose content stream contains a Tj string of N nested unbalanced parentheses to any endpoint that extracts PDF text via smalot/pdfparser < 2.14.0. When the application calls getText()/getTextArray(), formatContent() rescans the growing string on each regex pass, consuming seconds to minutes of CPU per request and exhausting PHP workers. A public PoC reference exists in the GHSA advisory; it is not verified as working exploit code, though it includes a reproduction script with measured timings.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.9% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 27, 2026

Denial of service in smalot/pdfparser before 2.14.0 lets remote attackers tie up PHP workers for seconds to minutes by submitting a crafted PDF whose content-stream string contains deeply nested or unbalanced parentheses, which triggers quadratic-time processing in PDFObject::formatContent(). Any application that passes untrusted PDFs to the library's text-extraction API (Parser::parseFile()/parseContent() through getText()/getTextArray()) is affected, since no authentication, user interaction, or non-default configuration is required, and the impact is confined to availability with no disclosure or modification of data. A public PoC reference exists; it is not verified as working exploit code, and real-world exposure depends on whether a deployment actually parses attacker-supplied PDFs for text rather than only trusted internal documents.

RemediationAI

Vendor-released patch: 2.14.0 (https://github.com/smalot/pdfparser/releases/tag/v2.14.0); upgrade the Composer dependency to 2.14.0 or later, which replaces the regex rebuild-and-rescan logic with a single linear scan and also stops silently losing text for content-stream elements larger than about 64 KB. The vendor states that all users processing untrusted PDFs should upgrade, and updating is the complete fix because any residual quadratic behaviour lives in the parsing code itself. If an immediate upgrade is not possible, reduce exposure by not feeding attacker-controlled PDFs into getText()/getTextArray() - for example by parsing untrusted uploads in a separate low-privilege worker with a hard per-request CPU/wall-clock cap and a request timeout, so a stalling job is killed rather than holding a shared PHP-FPM worker; the trade-off is that legitimate large or complex PDFs may also be truncated or rejected, and the underlying O(n^2) cost still consumes capacity up to the cap. Restricting the affected endpoint to trusted documents or deferring untrusted extraction to a queue with concurrency limits likewise lowers risk but does not remove it for any input path that remains open. Note that patched behaviour also changes error handling for malformed inline image dictionaries, BDC property lists and unmatched Q operators, so re-test extraction output after upgrading.

Affected VersionsENISA

pdfparser 0 <2.14.0

Affected Packages

euvd pdfparser fix: 2.14.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is CWE-407 inefficient algorithmic complexity, not a memory-safety bug. In versions before 2.14.0, PDFObject::formatContent() isolated string operands, inline images (BI ... ID ... EI) and marked-content dictionaries (BDC, BMC, DP, MP) before splitting a page content stream into commands. Each (...) string was matched with a regular expression running from an opening to the next closing parenthesis; when parentheses were unbalanced, the partial match was stored, re-quoted with preg_quote() and re-searched from the same offset, extending the match by one character per pass while rescanning the growing prefix. A string of n nested '(' followed by n ')' therefore cost roughly n passes of O(n) work, i.e. O(n^2) CPU. The same rebuild-and-rescan pattern applied to inline images (each replaced by a preg_replace() over the whole stream and restored with a per-image str_replace()) and marked-content dictionaries (each searched from the start of the stream). The content stream is fully attacker-controlled and is reached from the public extraction path Parser::parseFile()/parseContent() -> PDFObject::getText() -> getTextArray() -> getSectionsText() -> formatContent(). Vendor measurements on v2.13.1 with PHP 8.3 scale as expected for quadratic behaviour: 2.4 KB of content took 0.14 s, 4.4 KB took 0.48 s, 8.5 KB took 2.1 s and 16.5 KB took 9.0 s, so a roughly 64 KB PDF costs over a minute of CPU, and FlateDecode compression reaches the same effect with a 520-byte file (~6 s). The same construct also silently dropped text for elements larger than about 64 KB when the rebuilt expression failed to compile, allowing a crafted PDF to hide its text from extraction tools. The 2.14.0 fix removes every expression built from the content: strings are scanned once left to right tracking parenthesis depth and backslash escapes, and inline images and dictionaries are searched only after the previous match with output assembled piecemeal and images restored with a single strtr(), making formatContent() linear-time. The affected package is cpe:2.3:a:smalot:pdfparser, a Composer-installed PHP library.

Know when Pdfparser gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.7 HIGH
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
vuln.today AI 7.5 HIGH

Remote, low-complexity, unauthenticated submission of a crafted PDF to a text-extraction path with no user interaction; impact is availability-only (CPU/worker exhaustion), so C:N/I:N/A:H.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Technical POC Analysis

CWE-407 (inefficient algorithmic complexity), specifically a quadratic-time denial of service.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

CVE-2026-134129 is a high-severity denial-of-service flaw in the smalot/pdfparser library (before version 2.14.0) that can cause PHP worker exhaustion and service unavailability. Any application that processes untrusted PDFs through the library's text-extraction functions is at risk, potentially disrupting availability for customers and internal users who rely on PDF ingestion. Leadership should prioritize remediation because an attacker could deliberately degrade service, impacting operations and customer trust.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.9%
Top 44% exploitable
Prevalence
Medium
popular PHP PDF text-extraction library, common but not universally deployed
Social Media
3
Sightings
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.9%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

65
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy