Skip to content

Inefficient handling of non-whitespace inputs in read_until_whitespace

Moderate
stefan6419846 published GHSA-fc8x-2rww-xw9m Aug 6, 2026

Package

pip pypdf (pip)

Affected versions

< 6.15.0

Patched versions

>= 6.15.0

Description

Impact

An attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires a call to read_until_whitespace with an input which does not have whitespace for a long time.

Patches

This has been fixed in pypdf==6.15.0.

Workarounds

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

Severity

Moderate

CVE ID

No known CVE

Weaknesses

Inefficient Algorithmic Complexity

An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached. Learn more on MITRE.

Credits