Skip to content

Manipulated FlateDecode XFA streams can exhaust RAM

Moderate
stefan6419846 published GHSA-x7hp-r3qg-r3cj Feb 24, 2026

Package

pip pypdf (pip)

Affected versions

< 6.7.3

Patched versions

>= 6.7.3

Description

Impact

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.

Patches

This has been fixed in pypdf==6.7.3.

Workarounds

If you cannot upgrade yet, consider applying the changes from PR #3658.

Severity

Moderate

CVE ID

CVE-2026-27888

Weaknesses

Uncontrolled Resource Consumption

The product does not properly control the allocation and maintenance of a limited resource. Learn more on MITRE.

Credits