What’s Vulnerable › Vulnerabilities

CVE-2026-28351: Manipulated RunLengthDecode streams can exhaust RAM

Description

pypdf is a free and open-source pure-python PDF library. Prior to version 6.7.4, an attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires parsing the content stream using the RunLengthDecode filter. This has been fixed in pypdf 6.7.4. As a workaround, consider applying the changes from PR #3664.

Affected products

How to fix

Upgrade to a fixed version: py-pdf pypdf 6.7.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-28351 or the next vulnerability affects your stack