Skip to main content
VulnerabilityPublished

CVE-2026-24688: py-pdf pypdf · Infinite Loop

Affects py-pdf pypdfSource CVE Database V5

0

Not known to be exploited · CVSS 5.1 Medium : upgrade to 6.6.2 when convenient.

Data as of 26 Oct 2026, 11:42 UTC

CVSS 4.0 base score
5.1Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 38% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 6.6.2
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 Jan 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade py-pdf pypdf to 6.6.2.

Affected software

ProductAffectedFixed in
py-pdfpypdfAffected
  • <6.6.2
Fixed in
  • 6.6.2
PyPIpypdfpkg:pypi/pypdfOther threatsAffected
  • <6.6.2
Fixed in
  • 6.6.2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

European organizations should prioritize upgrading all instances of pypdf to version 6.6.2 or later to fully remediate the vulnerability. If immediate upgrading is not possible due to compatibility or operational constraints, applying the patch from pull request #3610 manually is recommended to fix the infinite loop condition. Additionally, organizations should implement input validation and sandboxing for PDF processing workflows to limit the impact of malicious PDFs. Rate limiting and resource usage monitoring on services handling PDFs can help detect and mitigate denial of service attempts. Employing application-level timeouts or watchdog mechanisms to terminate processes stuck in infinite loops can reduce service disruption. Regularly auditing software dependencies and maintaining an up-to-date inventory of pypdf usage across internal and external applications will aid in comprehensive mitigation. Finally, educating developers and system administrators about this vulnerability will ensure timely patching and response.

Description

### Impact An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires accessing the outlines/bookmarks. ### Patches This has been fixed in [pypdf 6.6.2](https://github.com/py-pdf/pypdf/releases/tag/6.6.2). ### Workarounds If projects cannot upgrade yet, consider applying the changes from PR [#3610](https://github.com/py-pdf/pypdf/pull/3610).

References

Community reviews

Loading reviews…