CVE-2026-135173: PdfPig through 0.1.16 Uncontrolled Recursion via AcroForm Field Kids and Marked Content
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.
Affected Software
Event History
Frequently Asked Questions
Which applications are exposed to this denial-of-service issue?
Applications using UglyToad.PdfPig through version 0.1.16 are exposed when they read PDF form fields or optional content from attacker-controlled or otherwise untrusted PDF documents.
What does an attacker need to exploit it?
An attacker only needs to supply a crafted PDF containing self-referencing AcroForm /Kids entries or deeply nested marked content. No authentication or user interaction is required according to the supplied severity vector.
What is the operational impact of successful exploitation?
Processing the malicious PDF can cause an uncatchable StackOverflowException in AcroFormFactory.GetAcroField or Page.GetOptionalContentsRecursively. This terminates the process handling the document.
How can teams identify potentially affected code paths?
Review uses of PdfPig that access AcroForm fields or optional content, particularly code paths that accept PDFs from external users or other untrusted sources. The affected recursive methods are AcroFormFactory.GetAcroField and Page.GetOptionalContentsRecursively.