GHSA-jw7q-gvrg-4vj3: Pip/pypdf vulnerability
Impact
An attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires a partially malformed /FlateDecode stream, where the byte-by-byte decompression is used.
Patches
This has been fixed in pypdf==6.18.1.
Workarounds
If you cannot upgrade yet, consider applying the changes from PR #4073.
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.18.1 - Upgrade
Upgrade
pypdfto a version that resolves this vulnerability.Fixed in 6.18.1
Event History
Frequently Asked Questions
What input is required to trigger the issue?
An attacker must provide a crafted PDF containing a partially malformed /FlateDecode stream that causes byte-by-byte decompression to be used.
What is the practical impact of processing a malicious PDF?
Processing the crafted PDF can result in long runtimes, creating a resource-consumption or denial-of-service concern for applications that parse untrusted PDFs.
Which pypdf release contains the fix?
The issue is fixed in pypdf 6.18.1.
What can be done if upgrading is not immediately possible?
Consider applying the changes from PR #4073 as a workaround.