CVE-2026-54651: pypdf: Possible infinite loop when processing threads/articles in writer

Published Jun 22, 2026
·
Updated

Impact

An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires merging a file with threads/articles into a writer.

Patches

This has been fixed in pypdf==6.13.1.

Workarounds

If users cannot upgrade yet, consider applying the changes from PR #3839.

Other sources

pypdf is a free and open-source pure-python PDF library. Prior to 6.13.1, an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires merging a file with threads/articles into a writer. This vulnerability is fixed in 6.13.1.

MITRE

Affected Software

3 affected componentsFixes available
pypi/pypdf<6.13.1
Pypdf Project Pypdf<6.13.1
pip/pypdf<6.13.1
6.13.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/pypdf to a version that resolves this vulnerability.

    Fixed in 6.13.1
  2. Upgrade

    Upgrade pypdf to a version that resolves this vulnerability.

    Fixed in 6.13.1
  3. Configuration

    If you cannot upgrade yet, apply the changes from PR [#3839] to address the infinite loop when processing threads/articles in a writer.

    pypdf Infinite loop fix when processing threads/articles in writer = Apply changes from PR [#3839]

Event History

Jun 22, 2026
CVE Published
via MITRE·08:28 PM
Data Sourced
via MITRE·08:28 PM
DescriptionWeakness
Data Sourced
via NVD·09:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 9, 2026
Advisory Published
via GitHub·09:09 PM
Data Sourced
via GitHub·09:09 PM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-54651?

CVE-2026-54651 has a risk rating of 23.

2

How do I fix CVE-2026-54651?

To resolve CVE-2026-54651, upgrade to pypdf version 6.13.1 or later.

3

What type of application is affected by CVE-2026-54651?

CVE-2026-54651 affects the pypdf library, which is a PDF manipulation tool in Python.

4

What can an attacker do with CVE-2026-54651?

An attacker can exploit CVE-2026-54651 to create a PDF that causes an infinite loop during processing.

5

In which version of pypdf was CVE-2026-54651 introduced?

CVE-2026-54651 was present in versions prior to 6.13.1 of the pypdf library.

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