CVE-2026-84311

pypdf: Possible long runtimes/large memory usage when extracting XForm objects

State
Published
Severity
4.8 Medium
Published
Sep 1, 2026
Updated
Sep 2, 2026
Reserved
Sep 1, 2026

Read the record on cve.org

Description

pypdf is a free and open-source pure-python PDF library. Prior to 6.16.1, an attacker can craft a PDF that causes pypdf/_page.py PageObject._extract_text and PageObject.extract_xform_text to traverse a directed acyclic graph of reused form XObjects in which each form invokes a child multiple times, creating exponentially many traversal paths and causing long runtimes and large memory consumption. This issue is fixed in version 6.16.1.

Scores

CVSSScoreVectorSource
4.04.8 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NGitHub_M

Weaknesses

Affected Products

ProductVersions
pypdfpy-pdf
  • < 6.16.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.