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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-400"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119204.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "6.21.4"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "ea4ac663133f1b3de1d7a8f2e6fa239802fde79e"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "6.21.4",
"range": [
{
"fixed": "b2c3fa2ee689f582a0de256a45e30bd96c68f807"
}
],
"source": "REFERENCES_TAG"
}
]
}