pypdf is a free and open-source pure-python PDF library. Prior to 6.21.0, an attacker can craft a PDF containing a content stream with many small operations, causing parsing to consume large amounts of memory. This issue is fixed in version 6.21.0.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-400",
"CWE-770"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113791.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "6.21.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "18bd2981a74479483a0b9507602c58a63d6c9b12"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "6.21.0",
"range": [
{
"fixed": "1145329e8c80e1f72fbbb4001460fb8553236aeb"
}
],
"source": "REFERENCES_TAG"
}
]
}