ADVISORIES

PyPA Advisory Database

PYSEC-2026-3010

pypdf: Inefficient decoding of FlateDecode PNG predictor streams

Details

Impact

An attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires accessing a stream which uses the /FlateDecode filter with a PNG predictor.

Patches

This has been fixed in pypdf==6.12.2.

Workarounds

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

Affected packages

EcosystemPackageAffected versions
PyPIpypdf
All versions before 6.12.2 (fixed in 6.12.2)

References