Skip to content

Inefficient decoding of FlateDecode PNG predictor streams

Moderate
stefan6419846 published GHSA-5hgr-hg42-57jg May 26, 2026

Package

pip pypdf (pip)

Affected versions

< 6.12.2

Patched versions

>= 6.12.2

Description

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.

Severity

Moderate

CVE ID

CVE-2026-49460

Weaknesses

Inefficient Algorithmic Complexity

An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached. Learn more on MITRE.

Credits