CVE-2026-113793
JSON

6.0medium

pypdf: Possible infinite loop when removing tree items

Severity
6.0medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.35% (higher than 31% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-9mx8-4j7g-633p

Description

pypdf is a free and open-source pure-python PDF library. Prior to 6.20.1, removing an object from a crafted cyclic PDF tree, such as an outline item, can enter an infinite loop and block the current process. This issue is fixed in version 6.20.1.

Affected

Product or packageVersionsReported by
py-pdf pypdf< 6.20.1, before 6.20.1CVE List, NVD
pypdf (PyPI)before 6.20.1GitHub Advisory Database

All scores

GitHub_M6.0medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L

Classification

CWE-835

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

pypdf is a free and open-source pure-python PDF library. Prior to 6.20.1, removing an object from a crafted cyclic PDF tree, such as an outline item, can enter an infinite loop and block the current process. This issue is fixed in version 6.20.1.

GitHub Advisory Database
Impact

An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires removing an object from a tree, for example an outline item.

Patches

This has been fixed in pypdf==6.20.1.

Workarounds

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

References

Sources

SourceRecordLicence
CVE ListCVE-2026-113793 changed 2026-10-28CVE Terms of Use
GitHub Advisory DatabaseGHSA-9mx8-4j7g-633p changed 2026-10-21CC-BY-4.0
NVDCVE-2026-113793 changed 2026-11-05Public domain