medium6.0
CVE-2026-113789
pypdf: Possible long runtimes/large memory usage when retrieving form fields
Impact
pypdf is a free and open-source pure-python PDF library. Prior to 6.21.0, an attacker can craft a PDF that causes large memory usage or long runtimes when an application retrieves the document's form fields. This issue is fixed in version 6.21.0.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | pypdf | < 6.21.0 | 6.21.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-6vvc-x485-93v7
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-6vvc-x485-93v7
- https://nvd.nist.gov/vuln/detail/CVE-2026-113789
- https://github.com/py-pdf/pypdf/pull/4219
- https://github.com/py-pdf/pypdf/commit/5ef728f0e16d225c853e89f861ba0a67402fe3f2
- https://github.com/py-pdf/pypdf/releases/tag/6.21.0