Skip to content
OpenAdvisories
Medium · 6.6 CVE-2025-62707 EUVD-2025-35625GHSA-vr63-x8vc-m265PYSEC-2026-1833

pypdf affected by possible infinite loop when reading DCT inline images without EOF marker

Published Oct 22, 2025 · Updated Oct 23, 2025 · Assigned by GitHub_M

Description

pypdf is a free and open-source pure-python PDF library. Prior to version 6.1.3, an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires parsing the content stream of a page which has an inline image using the DCTDecode filter. This has been fixed in pypdf version 6.1.3.

Affected products

VendorProductAffectedFixed
py-pdf pypdf < 6.1.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pypdf 6.9.0-1 —
Debian 13 pypdf No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 pypdf No fix yet —
Ubuntu 26.04 LTS pypdf No fix yet —
Ubuntu 25.10 pypdf No fix yet —
Ubuntu 24.04 LTS pypdf No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-pypdf 6.1.3-1.1 openSUSE-SU-2025:15664-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling open-webui +1 0.6.34-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pypdf < 6.1.3 6.1.3 GHSA-vr63-x8vc-m265

Advisories 2

References