GitHub Advisoryadvisory · PyPI
GHSA-j543-4vmf-qm7v pypdf: Possible large memory usage for form XObjects during text extraction
MEDIUM
Official page ↗
- Aliases
- CVE-2026-49461
- Ecosystem
- PyPI
- Packages
- pypdf
- Severity
- Moderate
- CVSS vector
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- Weaknesses
- CWE-400
- Reviewed
- 2026-06-16
Affected packages
• PyPI pypdf: < 6.12.2 → fixed in 6.12.2
Description
Impact
An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires extracting the text of a page which contains a form XObject with self-references.
Patches
This has been fixed in pypdf==6.12.2.
Workarounds
If you cannot upgrade yet, consider applying the changes from PR #3805.
Related
Alias · CVE (1)
- CVE-2026-49461 pypdf is a free and open-source pure-python PDF library. vulnerability
Weakness · CWE (1)
- CWE-400 Uncontrolled Resource Consumption weakness