Moderate severityNVD Advisory· Published Feb 20, 2026· Updated Feb 24, 2026
pypdf has a possible infinite loop when processing TreeObject
CVE-2026-27024
Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.7.1, an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires accessing the children of a TreeObject, for example as part of outlines. This vulnerability is fixed in 6.7.1.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
pypdfPyPI | < 6.7.1 | 6.7.1 |
Affected products
7- osv-coords6 versionspkg:apk/chainguard/open-webuipkg:apk/wolfi/open-webuipkg:pypi/pypdfpkg:rpm/opensuse/python-PyPDF2&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/python-PyPDF2&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/python-pypdf&distro=openSUSE%20Tumbleweed
< 0.8.3-r1+ 5 more
- (no CPE)range: < 0.8.3-r1
- (no CPE)range: < 0.8.3-r1
- (no CPE)range: < 6.7.1
- (no CPE)range: < 2.11.1-bp160.2.1
- (no CPE)range: < 2.11.1-4.1
- (no CPE)range: < 6.7.5-1.1
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-996q-pr4m-cvgqghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-27024ghsaADVISORY
- github.com/py-pdf/pypdf/commit/bd2f6d052fe5941e85e37082c2a43453d48d1295ghsax_refsource_MISCWEB
- github.com/py-pdf/pypdf/pull/3645ghsax_refsource_MISCWEB
- github.com/py-pdf/pypdf/releases/tag/6.7.1ghsax_refsource_MISCWEB
- github.com/py-pdf/pypdf/security/advisories/GHSA-996q-pr4m-cvgqghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.