CVE-2026-113793

pypdf: Possible infinite loop when removing tree items

Published Oct 21, 2026 CVSS 4.0 · 6 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Removing an element from a crafted cyclic PDF tree, such as an outline item, causes the pypdf library to enter an infinite loop and block the process. This results in a denial‑of‑service condition, classified as CWE‑835. The malfunction is confined to the process that invokes the library, but in services that parse untrusted PDFs it can render the entire service unavailable until the offending process is terminated.

Affected Systems

Any build of the pypdf library older than version 6.20.1 is affected. The library, distributed under the py‑pdf project, is commonly used by applications that parse, modify, or otherwise process PDF documents.

Risk and Exploitability

The flaw carries a CVSS score of 6, indicating medium severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting no documented exploitation activity. Based on the description, it is inferred that an attacker would need to deliver a crafted PDF containing a cyclic reference to the target application; depending on the deployment, this could be a remote attack if the PDF is accepted over a network or a local attack if the user can trigger PDF processing. Once triggered, the library will loop indefinitely, consuming CPU and halting progress until the process is killed.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade pypdf to version 6.20.1 or newer to apply the vendor’s fix
  • If upgrading is not immediately possible, isolate PDF processing in a sandboxed or separate worker so that a blocking loop does not affect the main application process
  • Validate incoming PDF files for unusual cyclic references or malformed structures before invoking removal functions to reduce the chance of triggering the loop

Generated by OpenCVE AI on October 22, 2026 at 04:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-9mx8-4j7g-633p pypdf: Possible infinite loop when removing tree items
History
Type Values Removed Values Added
CPEs cpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:python:*:*
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Py-pdf
Py-pdf pypdf
Vendors & Products Py-pdf
Py-pdf pypdf
Type Values Removed Values Added
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.
Title pypdf: Possible infinite loop when removing tree items
Weaknesses CWE-835
References
Metrics cvssV4_0

{'score': 6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 28, 2026, 5:01 PM
Reserved
Oct 20, 2026, 5:39 PM
Status
Analyzed
Published
Oct 21, 2026, 4:17 PM
Modified
Nov 5, 2026, 9:27 PM
Severity
Moderate
Public date
Oct 21, 2026, 3:57 PM