Skip to main content

PdfPig EUVDEUVD-2026-133103

| CVE-2026-135173 HIGH
Uncontrolled Recursion (CWE-674)
2026-11-23 VulnCheck GHSA-p7c2-wpq6-7vh2
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Craft PDF with self-referencing AcroForm /Kids
  2. Exploit
    Submit to PDF-processing service
  3. Execution
    Unbounded recursion overflows the stack during field parsing
  4. Impact
    Uncatchable StackOverflowException terminates the process

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

Exploitation requires the application to parse an attacker-supplied PDF AND to actually invoke the vulnerable code paths - reading AcroForm fields (e.g. AcroFormFactory.GetAcroField, reached via form-reading APIs such as TryGetForm/GetFields) or reading optional content (Page.GetOptionalContentsRecursively). The concrete malicious structures are: an AcroForm field whose /Kids array references itself, two fields listing each other as /Kids, or marked/optional content nested to extreme depth. Per the CVSS vector no authentication (PR:N) and no user interaction (UI:N) are needed, and no non-default configuration is required. The principal limiting factor is reachability: a process that merely opens a document without reading form fields or optional content may not trigger it. The key aggravating factor is that the resulting StackOverflowException is uncatchable, so the condition cannot be mitigated by exception handling - only by patching or by isolating/sandboxing the parsing process. Affects PdfPig versions up to and including 0.1.16.

Impact

This is an availability-only flaw (CVSS 4.0 VC:N/VI:N/VA:H) - a denial of service via uncontrolled recursion (CWE-674), not code execution or data exposure. The vector AV:N/AC:L/AT:N/PR:N/UI:N indicates a remote, unauthenticated, low-complexity, no-interaction trigger, which is why the base score reaches 8.7; however, the entire score is driven by the single high-availability impact plus easy reachability. The practical severity is amplified by one specific detail in the evidence: the resulting StackOverflowException is uncatchable in .NET, so a defending application cannot contain the crash with try/catch and the hosting process is terminated outright. Counterbalancing signals: no EPSS score was provided, the CVE is not listed in CISA KEV, and no standalone public exploit is identified - the vendor's own priority label is 'this_week' (not act_now/emergency), consistent with a readily-triggerable but impact-limited DoS. Real-world risk therefore hinges on exposure: it is a genuine priority for services that parse untrusted PDFs and read their form fields or optional content, but low concern for deployments that never process attacker-supplied documents. Note the attack vector is rated AV:N on the assumption that malicious PDFs are delivered over the network (uploads, email); for purely local file handling an AV:L reading would be defensible - verify against the deployment.

Exploit ScenarioDerived

An attacker uploads a crafted PDF to a service built on PdfPig - for example a document-ingestion, form-extraction, or indexing pipeline - in which an AcroForm field lists itself as its own /Kid (or two fields reference each other, or marked/optional content is nested to extreme depth). When the application reads the form fields or optional content, the parser recurses without bound and the worker process dies with an uncatchable StackOverflowException. The patch commit ships tests that reproduce these exact structures, but no standalone weaponized exploit is identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 23, 2026

Uncontrolled recursion in UglyToad PdfPig through 0.1.16 lets a crafted PDF terminate the entire host process, because deeply self-referencing AcroForm field trees or extremely nested marked content drive AcroFormFactory.GetAcroField and Page.GetOptionalContentsRecursively into an uncatchable StackOverflowException. The CVSS 4.0 vector is AV:N/AC:L/AT:N/PR:N/UI:N with no confidentiality or integrity impact and high availability impact, so the flaw is triggered remotely without credentials or user interaction, but only when the consuming application actually reads form fields (for example via TryGetForm/GetFields) or optional content rather than merely opening the document. No public exploit code was identified at time of analysis and the issue is not listed in CISA KEV; upstream fix commits are present in the project repository.

RemediationAI

Apply the upstream fix: vendor patch data says a fix is available and the cve.org patch reference points to commit d1d74b19f2b4714ead5eef364fea51ee51a21e0b (https://github.com/UglyToad/PdfPig/commit/d1d74b19f2b4714ead5eef364fea51ee51a21e0b), which introduces recursion/cycle guards for AcroForm /Kids and marked-content nesting plus a bounded call limit in the content stream processor; because this is a commit rather than a tagged release, pin the library to that commit or a later packaged version and verify the chosen version contains it, as a released patched version number is not independently confirmed in the available data. If the library cannot be upgraded immediately, the effective compensating control is isolation: run PDF parsing in a separate, restartable worker process or sandbox with resource limits so that a StackOverflowException terminates only that process - note that no managed exception handling can catch the failure, so try/catch inside the host application provides no protection. A further reduction in exposure can be achieved by not invoking form-field or optional-content APIs (TryGetForm/GetFields, Page.GetOptionalContentsRecursively) on untrusted documents where that functionality is not required, and by rejecting or pre-screening PDFs with self-referential /Kids arrays or extreme nesting before they reach PdfPig; both approaches trade functionality for safety and do not repair the underlying flaw.

Affected VersionsENISA

PdfPig 0 ≤0.1.16

Affected Packages

euvd pdfpig no fix

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

PdfPig is a .NET library for reading and creating PDF documents, and the flaw is CWE-674 (uncontrolled recursion) in two structural walkers. In the AcroForm path, AcroFormFactory.GetAcroField descends the /Kids hierarchy of form fields without detecting cycles or bounding depth, so a field whose /Kids array names its own object, or two fields that list each other as children, recurses until the stack is exhausted. In the content path, Page.GetOptionalContentsRecursively walks marked content / optional content structures whose nesting is likewise unbounded. The resulting StackOverflowException in .NET cannot be caught by managed exception handlers, so the failure is not recoverable at the application level and takes down the whole process. The upstream commit d1d74b19f2b4714ead5eef364fea51ee51a21e0b adds regression tests for these exact structures - a field listed as its own kid, two fields listing each other, a duplicated kid at every level, and fields nested to 10,000 levels - alongside a call-limit change in the content stream processor (ContentStreamProcessor.MaxFormXObjectCalls), confirming the fix couples recursion/cycle limits with bounded form invocation counting.

Know when Pdfpig 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 unauthenticated attacker supplies a crafted PDF (AV:N assuming network-delivered documents), recursion is deterministic so AC:L and PR:N/UI:N; impact is process crash only, hence 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

PdfPig through 0.1.16 contains an uncontrolled recursion vulnerability that allows attackers to crash applications by supplying crafted PDF documents with self-referencing AcroForm /Kids or deeply nested marked content. Attackers can trigger an uncatchable StackOverflowException in AcroFormFactory.GetAcroField or Page.GetOptionalContentsRecursively, terminating any process reading form fields or optional content.

Executive ViewAI

Why It Matters

A high-severity denial-of-service vulnerability in the PdfPig library (up to version 0.1.16) enables a maliciously crafted PDF to crash the entire application process, affecting any service that processes PDFs with form fields or optional content. This could disrupt business operations, causing downtime and potential service unavailability for customers and internal users, though data confidentiality and integrity remain unaffected.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 49% exploitable
Prevalence
Low
niche open-source .NET-only PDF parsing library (UglyToad PdfPig)
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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 No
EPSS 0.6%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
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