CVE-2026-135092: PDF::API2 versions before 2.049 for Perl allow unbounded recursion via circular cross-reference chains in readxrtr
PDF::API2 versions before 2.049 for Perl allow unbounded recursion via circular cross-reference chains in readxrtr.
When a PDF is opened, readxrtr reads each cross-reference table and calls itself on the offset in the trailer's /Prev entry. Nothing records which offsets it has already read, so a /Prev entry pointing back to an earlier table, or to its own, makes it recurse without end.
An attacker who supplies a crafted PDF can cause a denial of service in any application that opens it.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
PDF::API2to a version that resolves this vulnerability.Fixed in 2.049
Event History
Frequently Asked Questions
Which applications are exposed to this denial of service?
Applications using PDF::API2 before 2.049 are exposed if they open PDFs supplied by an attacker. Processing the crafted PDF causes unbounded recursion while reading its cross-reference tables.
What does an attacker need to exploit the issue?
The attacker needs to provide a crafted PDF with a circular trailer /Prev cross-reference chain, such as a /Prev entry that points to its own table or an earlier table. No other prerequisite is described.
How can I determine whether my application is affected?
Check whether it uses PDF::API2 before version 2.049 and opens untrusted or externally supplied PDF files. Such applications can be affected when processing a PDF with a circular /Prev chain.
What should be done if updating is not immediately possible?
The provided information identifies version 2.049 as the release addressing the issue, but does not describe a workaround. Until updating, avoid opening untrusted PDFs with affected PDF::API2 versions where possible.