CVE-2026-24688CWE-835

pypdf has possible Infinite Loop when processing outlines/bookmarks

Medium · published January 27, 2026

CVSS v4.0
5.1
EPSS
0%
Percentile
38.2
In the wild
Unconfirmed
What it is

⚠️ An infinite loop vulnerability lurks in pypdf, waiting to trap your application in a never-ending spiral! 🌪️ Think of it like a book with a bookmark that never lets you turn the page, endlessly looping back to the same spot. You can't move forward, and the whole reading experience grinds to a halt! 📚 If exploited, this vulnerability could cause your application to freeze indefinitely when trying to access PDF outlines or bookmarks, leading to downtime that can frustrate users and disrupt services. It's not catastrophic, but definitely annoying enough to warrant your attention!

Put simply

Think of it like a book with a bookmark that never lets you turn the page, endlessly looping back to the same spot. You can't move forward, and the whole reading experience grinds to a halt! 📚 This infinite loop vulnerability in pypdf affects versions prior to 6.6.2, allowing attackers to craft PDFs that cause processes to hang when accessing bookmarks. Essentially, the library gets stuck in a continuous loop without a way out.

What to do

If exploited, this vulnerability could cause your application to freeze indefinitely when trying to access PDF outlines or bookmarks, leading to downtime that can frustrate users and disrupt services. It's not catastrophic, but definitely annoying enough to warrant your attention! Upgrade pypdf to version 6.6.2 immediately to eliminate this vulnerability. If an upgrade isn’t possible right now, you can manually apply the changes from PR #3610 to mitigate the issue. Don’t let your app get stuck! You’ve got this! Fixing this vulnerability is a straightforward upgrade away. 🛡️

The record
Technical detail
CVSS v4.0
5.1 · MEDIUM
Vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
EPSS
0.00451 · 38.2th percentile
Weakness
CWE-835 · Loop with Unreachable Exit Condition ('Infinite Loop')
Published
2026-01-27T19:44Z
EPSS history
Timeline
  • 27 JAN 19:44Z
    pypdf has possible Infinite Loop when processing outlines/bookmarks
    cvelistv5