GHSA-cmpx-464x-82c3: pypdf 2.4.2 before 7.0.0 Excessive Memory Usage via XFA Forms
Published Nov 21, 2026
·Updated
pypdf 2.4.2 before 7.0.0 contains a resource exhaustion vulnerability in its handling of XFA forms that allows attackers to cause excessive memory consumption. Attackers can supply a crafted PDF containing XFA forms with many small fields so that loading the forms consumes large amounts of memory, causing a denial of service.
Affected Software
1 affected component
pypi/pypdf>=2.4.2<7.0.0
Event History
Nov 21, 2026
CVE Published
via OSV·04:34 PM
Data Sourced
via OSV·04:34 PM
DescriptionSeverityWeakness
Frequently Asked Questions
1
Which pypdf versions are affected and what version resolves the issue?
pypdf versions from 2.4.2 up to, but not including, 7.0.0 are affected. Version 7.0.0 is not listed as affected.
2
What must an attacker provide to trigger the memory exhaustion?
An attacker must supply a crafted PDF containing XFA forms with many small fields. The excessive memory consumption occurs when the application loads those forms, potentially causing a denial of service.