All reports
Medium

pypdf: Manipulated RunLengthDecode streams can exhaust RAM

Affected versions

Version ranges need review.

PyPIpypdf
Affected versions
< 6.7.4
Fixed version
6.7.4
PyPIpypdf
Affected versions
<6.7.4
Fixed version
6.7.4
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-28351

Probability of exploitation in the next 30 days: 0.48%

FIRST EPSS · 2026-11-21

Description

Impact

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.

Patches

This has been fixed in pypdf==6.7.4.

Workarounds

If you cannot upgrade yet, consider applying the changes from PR #3664.

Links

Credits

  • bugbunny-research
  • stefan6419846