CVE-2026-27628: pypdf has a possible infinite loop when loading circular /Prev entries in cross-reference streams

Published Feb 25, 2026
·
Updated

Impact

An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires reading the file.

Patches

This has been fixed in pypdf==6.7.2.

Workarounds

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

Other sources

pypdf is a free and open-source pure-python PDF library. Prior to 6.7.2, an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires reading the file. This has been fixed in pypdf 6.7.2. As a workaround, one may apply the patch manually.

MITRE

Affected Software

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

Event History

Feb 25, 2026
CVE Published
via MITRE·02:45 AM
Data Sourced
via MITRE·02:45 AM
DescriptionWeakness
Data Sourced
via NVD·03:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·04:09 PM
Data Sourced
via GitHub·04:09 PM
DescriptionWeaknessAffected Software
Oct 1, 58139
Event
via FIRST·03:46 PM
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-27628?

The severity of CVE-2026-27628 is considered to be high due to the infinite loop caused by malformed PDF files.

2

How do I fix CVE-2026-27628?

To fix CVE-2026-27628, update pypdf to version 6.7.2 or later.

3

What software is affected by CVE-2026-27628?

CVE-2026-27628 affects pypdf versions prior to 6.7.2.

4

What is the exploit potential of CVE-2026-27628?

The exploit potential of CVE-2026-27628 allows an attacker to create a crafted PDF that triggers an infinite loop, affecting application performance.

5

Can CVE-2026-27628 affect all applications using pypdf?

Yes, any application utilizing pypdf versions prior to 6.7.2 is susceptible to CVE-2026-27628.

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