CVE-2026-84309: pypdf: Possible infinite loop for TreeObject.insert_child

Published Sep 1, 2026
·
Updated

pypdf is a free and open-source pure-python PDF library. Prior to 6.16.0, an attacker can craft a PDF whose cyclic tree structure causes pypdf/generic/datastructures.py TreeObject.insertchild to follow /Next links indefinitely when a writing code path inserts a child, producing an infinite loop. This issue is fixed in version 6.16.0.

Affected Software

1 affected component
pypi/pypdf<6.16.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pypdf to a version that resolves this vulnerability.

    Fixed in 6.16.0

Event History

Sep 1, 2026
CVE Published
via MITRE·07:58 PM
Data Sourced
via MITRE·07:58 PM
DescriptionWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using pypdf versions before 6.16.0 are exposed when they process an attacker-crafted PDF through a writing code path that inserts a child into a TreeObject.

2

What does an attacker need to do to trigger the problem?

The attacker must provide a PDF with a cyclic tree structure. When pypdf follows the tree's /Next links during TreeObject.insert_child, it can loop indefinitely.

3

What should teams do to remediate the issue?

Upgrade pypdf to version 6.16.0, which fixes the infinite-loop condition.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203