6.0medium
pypdf: Possible long runtimes/large memory usage when retrieving form fields
- Severity
- 6.0medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.32% (higher than 27% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-6vvc-x485-93v7
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| py-pdf pypdf | < 6.21.0, before 6.21.0 | CVE List, NVD |
| pypdf (PyPI) | before 6.21.0 | GitHub Advisory Database |
All scores
| GitHub_M | 6.0medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| NVD | 3.3low CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
An attacker who uses this vulnerability can craft a PDF which leads to large memory usage and/or long runtimes. This requires retrieving the form fields of a document.
Patches
This has been fixed in pypdf==6.21.0.
Workarounds
If you cannot upgrade yet, consider applying the changes from PR #4219.
References
| https://github.com/py-pdf/pypdf/security/advisories/GHSA-6vvc-x485-93v7 | vendor-advisory, web | |
| https://github.com/py-pdf/pypdf/pull/4219 | issue-tracking, patch, web | |
| https://github.com/py-pdf/pypdf/commit/5ef728f0e16d225c853e89f861ba0a67402fe3f2 | patch, web | |
| https://github.com/py-pdf/pypdf/releases/tag/6.21.0 | release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-113789 | advisory | |
| https://github.com/py-pdf/pypdf | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-113789 changed 2026-10-28 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-6vvc-x485-93v7 changed 2026-10-22 | CC-BY-4.0 |
| NVD | CVE-2026-113789 changed 2026-11-02 | Public domain |