CVE-2026-119205

pypdf: Possible infinite loop when cloning dictionaries

Published Oct 29, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.21.4, pypdf can enter an infinite loop when cloning or duplicating a crafted cyclic DictionaryObject. Clone traversal checked generated destination references rather than the original source references, allowing some source cycles to evade the visited-object check. This issue is fixed in version 6.21.4.

Analysis

AI-generated

Technical impact

pypdf contains a flaw that allows an attacker to trigger an infinite loop by cloning a specially crafted cyclic DictionaryObject. The loop consumes CPU resources and can stall the process handling the clone, resulting in denial of service. The weakness is identified as CWE-835 (Infinite Loop).

Affected Systems

The vulnerable vendor is py-pdf and product pypdf. All releases prior to version 6.21.4 are affected; the issue was fixed in 6.21.4 and later releases.

Risk and Exploitability

The CVSS score of 7.1 classifies this issue as high severity. EPSS data is unavailable, so the current exploitation probability is not quantified; the absence from the KEV catalog suggests no documented exploits yet. The likely attack vector is input-based: an attacker supplies a malicious PDF containing a cyclic dictionary that the application processes, forcing the clone operation and causing the loop. This can be remotely achieved if the application accepts PDFs from untrusted sources, otherwise it may remain a local risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade pypdf to version 6.21.4 or later
  • Validate or sanitize PDFs to reject cyclic DictionaryObjects before cloning
  • Monitor the application for abnormal CPU usage or hangs that may indicate exploitation

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

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-mfr5-77xh-9j7h pypdf has possible infinite loop when cloning dictionaries
History
Type Values Removed Values Added
CPEs cpe:2.3:a:pypdf_project:pypdf:*:*:*:*:*:*:*:* cpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:*:*:*
Vendors & Products Pypdf Project
Pypdf Project pypdf
Type Values Removed Values Added
First Time appeared Pypdf Project
Pypdf Project pypdf
CPEs cpe:2.3:a:pypdf_project:pypdf:*:*:*:*:*:*:*:*
Vendors & Products Pypdf Project
Pypdf Project pypdf
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', '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.21.4, pypdf can enter an infinite loop when cloning or duplicating a crafted cyclic DictionaryObject. Clone traversal checked generated destination references rather than the original source references, allowing some source cycles to evade the visited-object check. This issue is fixed in version 6.21.4.
Title pypdf: Possible infinite loop when cloning dictionaries
Weaknesses CWE-835
References
Metrics cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/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 30, 2026, 4:00 PM
Reserved
Oct 29, 2026, 4:04 PM
Status
Analyzed
Published
Oct 29, 2026, 9:17 PM
Modified
Nov 2, 2026, 4:06 PM
Severity
Moderate
Public date
Oct 29, 2026, 8:35 PM