Moderate severityNVD Advisory· Published Feb 26, 2026· Updated Feb 26, 2026
pypdf: Manipulated FlateDecode XFA streams can exhaust RAM
CVE-2026-27888
Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.7.3, an attacker who uses this vulnerability can craft a PDF which leads to the RAM being exhausted. This requires accessing the xfa property of a reader or writer and the corresponding stream being compressed using /FlateDecode. This has been fixed in pypdf 6.7.3. As a workaround, apply the patch manually.
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.3 | 6.7.3 |
Affected products
4- ghsa-coords3 versionspkg:pypi/pypdfpkg:rpm/opensuse/python-PyPDF2&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/python-PyPDF2&distro=openSUSE%20Tumbleweed
< 6.7.3+ 2 more
- (no CPE)range: < 6.7.3
- (no CPE)range: < 2.11.1-bp160.2.1
- (no CPE)range: < 2.11.1-5.1
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-x7hp-r3qg-r3cjghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-27888ghsaADVISORY
- github.com/py-pdf/pypdf/commit/7a4c8246ed48d9d328fb596942271da47b6d109cghsax_refsource_MISCWEB
- github.com/py-pdf/pypdf/pull/3658ghsax_refsource_MISCWEB
- github.com/py-pdf/pypdf/releases/tag/6.7.3ghsax_refsource_MISCWEB
- github.com/py-pdf/pypdf/security/advisories/GHSA-x7hp-r3qg-r3cjghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.