GHSA-7mh2-4gg2-979f: Pip/pypdf vulnerability
Impact
An attacker who uses this vulnerability can craft a PDF which leads to large memory consumption. This requires accessing any stream with a large amount of filters or multiple filters which pass around large amounts of data.
Patches
This has been fixed in pypdf==6.20.0.
Workarounds
If you cannot upgrade yet, consider applying the changes from PR #4173.
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.20.0 - Upgrade
Upgrade
pypdfto a version that resolves this vulnerability.Fixed in 6.20.0 - Compensating control
If unable to upgrade, apply the changes from PR #4173 as a workaround.