Skip to content
OpenAdvisories
Medium · 6.6 CVE-2026-27888 EUVD-2026-8791GHSA-x7hp-r3qg-r3cjPYSEC-2026-3027

pypdf: Manipulated FlateDecode XFA streams can exhaust RAM

Published Feb 26, 2026 · Updated Jun 23, 2026 · Assigned by GitHub_M

Description

pypdf is a free and open-source pure-python PDF library. Prior to 6.7.3, an attacker who uses this vulnerability can craft a PDF which leads to the RAM being exhausted. This requires accessing the `xfa` property of a reader or writer and the corresponding stream being compressed using `/FlateDecode`. This has been fixed in pypdf 6.7.3. As a workaround, apply the patch manually.

Affected products

VendorProductAffectedFixed
py-pdf pypdf < 6.7.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 —
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 No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-PyPDF2 2.11.1-5.1 openSUSE-SU-2026:10284-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pypdf < 6.7.3 6.7.3 GHSA-x7hp-r3qg-r3cj

Advisories 2

References