CVE-2026-24688

pypdf has possible Infinite Loop when processing outlines/bookmarks

Published Jan 27, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
pypdf is a free and open-source pure-python PDF library. An attacker who uses an infinite loop vulnerability that is present in versions prior to 6.6.2 can craft a PDF which leads to an infinite loop. This requires accessing the outlines/bookmarks. This has been fixed in pypdf 6.6.2. If projects cannot upgrade yet, consider applying the changes from PR #3610 manually.

Analysis

AI-generated

Technical impact

This vulnerability allows an attacker to craft a PDF that, when processed by pypdf, causes the library to enter an infinite loop while handling outlines and bookmarks. The loop can consume significant CPU and memory, potentially exhausting system resources and rendering the application unresponsive. The flaw is a classic infinite‑loop weakness and is classified as CWE‑835. There is no known path to arbitrary code execution or data disclosure.

Affected Systems

The issue affects the py-pdf pypdf library in any version prior to 6.6.2. All installations using older releases are vulnerable unless they have applied the manual changes from the referenced pull request.

Risk and Exploitability

The calculated CVSS score is 5.1, indicating a moderate severity. The EPSS score is below 1 %, suggesting a low probability of exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires the attacker to supply a specially crafted PDF that is parsed by the vulnerable library, which typically occurs in applications that load PDFs from untrusted sources. If such parsing is performed in a high‑privilege context, the resulting denial of service could be critical to business operations.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the pypdf library to version 6.6.2 or later
  • If an upgrade cannot be performed immediately, apply the changes from pull request #3610 to your local copy of the library
  • Limit or sandbox processing of PDFs coming from untrusted sources to reduce the impact of a denial‑of‑service attack

Generated by OpenCVE AI on April 18, 2026 at 01:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-2q4j-m29v-hq73 pypdf has possible Infinite Loop when processing outlines/bookmarks
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
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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
First Time appeared Pypdf Project
Pypdf Project pypdf
CPEs cpe:2.3:a:pypdf_project:pypdf:*:*:*:*:*:*:*:*
Vendors & Products Pypdf Project
Pypdf Project pypdf
Metrics cvssV3_1

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

cvssV3_1

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

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

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

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
Metrics ssvc

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

Type Values Removed Values Added
Description pypdf is a free and open-source pure-python PDF library. An attacker who uses an infinite loop vulnerability that is present in versions prior to 6.6.2 can craft a PDF which leads to an infinite loop. This requires accessing the outlines/bookmarks. This has been fixed in pypdf 6.6.2. If projects cannot upgrade yet, consider applying the changes from PR #3610 manually.
Title pypdf has possible Infinite Loop when processing outlines/bookmarks
Weaknesses CWE-835
References
Metrics cvssV4_0

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

Weaknesses
  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jan 27, 2026, 8:51 PM
Reserved
Jan 23, 2026, 8:40 PM
Status
Analyzed
Published
Jan 27, 2026, 8:16 PM
Modified
Nov 2, 2026, 4:06 PM
Severity
Moderate
Public date
Jan 27, 2026, 7:44 PM