CVE-2026-41312: pypdf: Manipulated FlateDecode predictor parameters can exhaust RAM
pypdf is a free and open-source pure-python PDF library. An attacker who uses a vulnerability present in versions prior to 6.10.2 can craft a PDF which leads to the RAM being exhausted. This requires accessing a stream compressed using /FlateDecode with a /Predictor unequal 1 and large predictor parameters. This has been fixed in pypdf 6.10.2. As a workaround, one may apply the changes from the patch manually.
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2026-41312?
CVE-2026-41312 has a high severity rating due to its potential to exhaust RAM resources.
How do I fix CVE-2026-41312?
To fix CVE-2026-41312, update your pypdf library to version 6.10.2 or later.
What versions of pypdf are affected by CVE-2026-41312?
CVE-2026-41312 affects all pypdf versions prior to 6.10.2.
What kind of attack is possible with CVE-2026-41312?
An attacker can craft a malicious PDF that exploits CVE-2026-41312 to exhaust system RAM.
Is CVE-2026-41312 a local or remote vulnerability?
CVE-2026-41312 is considered a remote vulnerability as it requires the victim to open a malicious PDF.