Advisory

PYSEC-2026-3656

Also known as: CVE-2026-71852, GHSA-fwg2-594c-jp42

Summary

pypdf: Possible long runtimes/large memory usage for large CID font width ranges

Details

Impact

An attacker who uses this vulnerability can craft a PDF which leads to long runtimes and large memory consumption. This requires parsing the font width entries of a font with unusually large values, for example during text extraction.

Patches

This has been fixed in pypdf==6.15.0.

Workarounds

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

Severity

Not rated by the source.

Dates

Published
2026-08-10 10:43 UTC
Modified
2026-08-10 11:30 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