Description
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 products and versions
py-pdf pypdf2.4.2 – < 7.0.0Fixed in: 7.0.0
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- None
- Integrity
- None
- Availability
- High impact
Weakness type (CWE)
- CWE-770 Allocation of Resources Without Limits or Throttling
References
- github.com/py-pdf/pypdf/security/advisories/GHSA-cmpx-464x-82c3 vendor advisory
- www.vulncheck.com/advisories/pypdf-2.4.2-before-7.0.0-excessive-memory-usage-via-xfa-forms
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.