Moderate severityNVD Advisory· Published Feb 20, 2026· Updated Feb 24, 2026
pypdf has possible long runtimes/large memory usage for large /ToUnicode streams
CVE-2026-27025
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 long runtimes and large memory consumption. This requires parsing the /ToUnicode entry of a font with unusually large values, for example during text extraction. 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
6- osv-coords5 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%20Tumbleweed
< 0.8.3-r1+ 4 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
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-wgvp-vg3v-2xq3ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-27025ghsaADVISORY
- github.com/py-pdf/pypdf/commit/77d7b8d7cfbe8dd179858dfa42666f73fc6e57a2ghsax_refsource_MISCWEB
- github.com/py-pdf/pypdf/pull/3646ghsax_refsource_MISCWEB
- github.com/py-pdf/pypdf/releases/tag/6.7.1ghsax_refsource_MISCWEB
- github.com/py-pdf/pypdf/security/advisories/GHSA-wgvp-vg3v-2xq3ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.