GitHub Advisoryadvisory · PyPI

GHSA-2rw7-x74f-jg35 pypdf has a possible infinite loop when loading circular /Prev entries in cross-reference streams

LOW Published 2026-02-25 Modified 2026-02-25 Official page ↗
Aliases
CVE-2026-27628
Ecosystem
PyPI
Packages
pypdf
Severity
Low
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U
Weaknesses
CWE-835
Reviewed
2026-02-25

Affected packages

• PyPI pypdf: < 6.7.2 → fixed in 6.7.2

Description

Impact An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires reading the file. Patches This has been fixed in pypdf==6.7.2. Workarounds If users cannot upgrade yet, consider applying the changes from PR #3655.

Related

Alias · CVE (1)

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

Weakness · CWE (1)

  • CWE-835 Loop with Unreachable Exit Condition weakness

References