Skip to content
OpenAdvisories
Medium · 6.6 CVE-2025-55197 EUVD-2025-24648GHSA-7hfw-26vp-jp8mPYSEC-2026-1830

pypdf's Manipulated FlateDecode streams can exhaust RAM

Published Aug 13, 2025 · Updated Aug 14, 2025 · Assigned by GitHub_M

Description

pypdf is a free and open-source pure-python PDF library. Prior to version 6.0.0, an attacker can craft a PDF which leads to the RAM being exhausted. This requires just reading the file if a series of FlateDecode filters is used on a malicious cross-reference stream. Other content streams are affected on explicit access. This issue has been fixed in 6.0.0. If an update is not possible, a workaround involves including the fixed code from pypdf.filters.decompress into the existing filters file.

Affected products

VendorProductAffectedFixed
py-pdf pypdf < 6.0.0 —

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 —
Debian 12 pypdf +1 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 +1 No fix yet —
Ubuntu 22.04 LTS pypdf2 No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS pypdf2 No fix yet —
Ubuntu Pro 18.04 LTS pypdf2 No fix yet —
Ubuntu Pro 16.04 LTS pypdf2 No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-PyPDF2 2.11.1-4.1 openSUSE-SU-2026:10238-1
openSUSE Tumbleweed python-pypdf 6.0.0-1.1 openSUSE-SU-2025:15439-1

Wolfi

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

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pypdf < 6.0.0 6.0.0 GHSA-7hfw-26vp-jp8m

Advisories 3

References