CVE-2026-119204
pypdf: Possible large memory usage when parsing page tree
pypdf is a free and open-source pure-python PDF library. Prior to 6.21.4, pypdf can consume excessive memory while parsing a crafted PDF page tree containing many shared resources. Page-tree flattening copies page dictionary and inherited resource entries without a document-wide entry budget, allowing the crafted resource structure to cause disproportionate allocations. This issue is fixed in version 6.21.4.
Fixes and workarounds
Fix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: [email protected]Fix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: [email protected]Fix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: [email protected]Fix
pypi (pip): GitHub reports patched versions >= 6.21.4. Check the advisory for the affected release branch.
Source: GitHub GHSA-cggf-277g-3q54Fix
pypdf (PyPI): OSV reports a fixed version 6.21.4. Check the advisory for supported release branches.
Source: OSV GHSA-cggf-277g-3q54Affected products and versions
| Product | Versions | Authority |
|---|---|---|
| pypdf py-pdf |
< 6.21.4 (affected) | CNA: GitHub_M |
pypipypi
pip |
< 6.21.4 (affected, GitHub advisory range) | GitHub GHSA-cggf-277g-3q54 |
pypdfpypdf
PyPI |
1.0 (affected, PyPI) 1.1 (affected, PyPI) 1.10 (affected, PyPI) 1.11 (affected, PyPI) 1.12 (affected, PyPI) 1.13 (affected, PyPI) 1.2 (affected, PyPI) 1.3 (affected, PyPI) 1.4 (affected, PyPI) 1.5 (affected, PyPI) 1.6 (affected, PyPI) 1.7 (affected, PyPI) 1.8 (affected, PyPI) 1.9 (affected, PyPI) 3.1.0 (affected, PyPI) 3.10.0 (affected, PyPI) 3.11.0 (affected, PyPI) 3.11.1 (affected, PyPI) 3.12.0 (affected, PyPI) 3.12.1 (affected, PyPI) 3.12.2 (affected, PyPI) 3.13.0 (affected, PyPI) 3.14.0 (affected, PyPI) 3.15.0 (affected, PyPI) 3.15.1 (affected, PyPI) 3.15.2 (affected, PyPI) 3.15.3 (affected, PyPI) 3.15.4 (affected, PyPI) 3.15.5 (affected, PyPI) 3.16.0 (affected, PyPI) 3.16.1 (affected, PyPI) 3.16.2 (affected, PyPI) 3.16.3 (affected, PyPI) 3.16.4 (affected, PyPI) 3.17.0 (affected, PyPI) 3.17.1 (affected, PyPI) 3.17.2 (affected, PyPI) 3.17.3 (affected, PyPI) 3.17.4 (affected, PyPI) 3.2.0 (affected, PyPI) 3.2.1 (affected, PyPI) 3.3.0 (affected, PyPI) 3.4.0 (affected, PyPI) 3.4.1 (affected, PyPI) 3.5.0 (affected, PyPI) 3.5.1 (affected, PyPI) 3.5.2 (affected, PyPI) 3.6.0 (affected, PyPI) 3.7.0 (affected, PyPI) 3.7.1 (affected, PyPI) 3.8.0 (affected, PyPI) 3.8.1 (affected, PyPI) 3.9.0 (affected, PyPI) 3.9.1 (affected, PyPI) 4.0.0 (affected, PyPI) 4.0.1 (affected, PyPI) 4.0.2 (affected, PyPI) 4.1.0 (affected, PyPI) 4.2.0 (affected, PyPI) 4.3.0 (affected, PyPI) 4.3.1 (affected, PyPI) 5.0.0 (affected, PyPI) 5.0.1 (affected, PyPI) 5.1.0 (affected, PyPI) 5.2.0 (affected, PyPI) 5.3.0 (affected, PyPI) 5.3.1 (affected, PyPI) 5.4.0 (affected, PyPI) 5.5.0 (affected, PyPI) 5.6.0 (affected, PyPI) 5.6.1 (affected, PyPI) 5.7.0 (affected, PyPI) 5.8.0 (affected, PyPI) 5.9.0 (affected, PyPI) 6.0.0 (affected, PyPI) 6.1.0 (affected, PyPI) 6.1.1 (affected, PyPI) 6.1.2 (affected, PyPI) 6.1.3 (affected, PyPI) 6.10.0 (affected, PyPI) 6.10.1 (affected, PyPI) 6.10.2 (affected, PyPI) 6.11.0 (affected, PyPI) 6.12.0 (affected, PyPI) 6.12.1 (affected, PyPI) 6.12.2 (affected, PyPI) 6.13.0 (affected, PyPI) 6.13.1 (affected, PyPI) 6.13.2 (affected, PyPI) 6.13.3 (affected, PyPI) 6.14.0 (affected, PyPI) 6.14.1 (affected, PyPI) 6.14.2 (affected, PyPI) 6.15.0 (affected, PyPI) 6.16.0 (affected, PyPI) 6.16.1 (affected, PyPI) 6.16.2 (affected, PyPI) 6.17.0 (affected, PyPI) 6.18.0 (affected, PyPI) 6.18.1 (affected, PyPI) 6.19.0 (affected, PyPI) 6.2.0 (affected, PyPI) 6.20.0 (affected, PyPI) 6.20.1 (affected, PyPI) 6.21.0 (affected, PyPI) 6.21.1 (affected, PyPI) 6.21.2 (affected, PyPI) 6.21.3 (affected, PyPI) 6.3.0 (affected, PyPI) 6.4.0 (affected, PyPI) 6.4.1 (affected, PyPI) 6.4.2 (affected, PyPI) 6.5.0 (affected, PyPI) 6.6.0 (affected, PyPI) 6.6.1 (affected, PyPI) 6.6.2 (affected, PyPI) 6.7.0 (affected, PyPI) 6.7.1 (affected, PyPI) 6.7.2 (affected, PyPI) 6.7.3 (affected, PyPI) 6.7.4 (affected, PyPI) 6.7.5 (affected, PyPI) 6.8.0 (affected, PyPI) 6.9.0 (affected, PyPI) 6.9.1 (affected, PyPI) 6.9.2 (affected, PyPI) Ecosystem version events: introduced 0; fixed 6.21.4 Source events (ECOSYSTEM)
Other versions: unaffected |
OSV GHSA-cggf-277g-3q54 |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
NVD applicability configurations (1)
These expressions retain AND/OR operators, negation, and required environmental products. A listed product is not sufficient to establish exposure when additional conditions apply.
[
{
"negate": false,
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.21.4",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "OR"
}
]CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 4.0 / 7.1 high |
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | CNA: GitHub_M |
| 4.0 / 7.1 high |
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | NVD: [email protected] |
| 3.1 / 5.5 medium |
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | NVD: [email protected] |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-cggf-277g-3q54CNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/py-pdf/pypdf/pull/4290CNA: GitHub_M · x_refsource_MISC
- https://github.com/py-pdf/pypdf/commit/ea4ac663133f1b3de1d7a8f2e6fa239802fde79eCNA: GitHub_M · x_refsource_MISC
- https://github.com/py-pdf/pypdf/releases/tag/6.21.4CNA: GitHub_M · x_refsource_MISC
- https://github.com/py-pdf/pypdf/commit/ea4ac663133f1b3de1d7a8f2e6fa239802fde79e[email protected] · Patch
- https://github.com/py-pdf/pypdf/pull/4290[email protected] · Patch
- https://github.com/py-pdf/pypdf/releases/tag/6.21.4[email protected] · Release Notes
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-cggf-277g-3q54[email protected] · Patch, Vendor Advisory
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-cggf-277g-3q54GitHub Security Advisories · advisory
- https://github.com/advisories/GHSA-cggf-277g-3q54OSV / GitHub Security Advisories · advisory
- https://osv.dev/vulnerability/GHSA-cggf-277g-3q54OSV / GitHub Security Advisories · osv
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.