GHSA-w23x-9jrw-r45c: Pip/pypdf vulnerability
Impact
An attacker who uses this vulnerability can craft a PDF which leads to large memory consumption. This requires accessing the page labels of a document with large alphabetical labels.
Patches
This has been fixed in pypdf==6.19.0.
Workarounds
If you cannot upgrade yet, consider applying the changes from PR #4096.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pip/pypdfto a version that resolves this vulnerability.Fixed in 6.19.0 - Upgrade
Upgrade
pypdfto a version that resolves this vulnerability.Fixed in 6.19.0
Event History
Frequently Asked Questions
What condition triggers the excessive memory consumption?
The malicious PDF must cause the application to access the document's page labels, and the document must contain large alphabetical labels. The issue is triggered when those page labels are accessed.
Which pypdf release contains the fix?
The issue is fixed in pypdf 6.19.0.
What can be done if upgrading is not immediately possible?
Consider applying the changes from PR #4096 as a workaround.