Advisory

PYSEC-2026-3912

Also known as: CVE-2026-82398, GHSA-fc8x-2rww-xw9m

Summary

pypdf: Inefficient handling of non-whitespace inputs in read_until_whitespace

Details

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

Not rated by the source.

Dates

Published
2026-09-10 09:44 UTC
Modified
2026-09-10 12:15 UTC

Affected packages and fixes

pypdf

PyPI · All systems

Affected

  • introduced 0, fixed 6.15.0 (ecosystem)

Fixed versions

6.15.0

Fix

  • Fixed version 6.15.0
    pip install --upgrade pypdf==6.15.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences