GitHub Advisoryadvisory · PyPI

GHSA-5hgr-hg42-57jg pypdf: Inefficient decoding of FlateDecode PNG predictor streams

MEDIUM Published 2026-06-16 Modified 2026-06-16 Official page ↗
Aliases
CVE-2026-49460
Ecosystem
PyPI
Packages
pypdf
Severity
Moderate
CVSS vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Weaknesses
CWE-407
Reviewed
2026-06-16

Affected packages

• PyPI pypdf: < 6.12.2 → fixed in 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.

Related

Alias · CVE (1)

  • CVE-2026-49460 pypdf is a free and open-source pure-python PDF library. vulnerability

Weakness · CWE (1)

  • CWE-407 Inefficient Algorithmic Complexity weakness

References