Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.15.0, a crafted PDF can cause long runtimes and large memory consumption when pypdf/_font.py function Font._collect_cid_character_widths expands unusually large CID font /W width ranges or excessive width entries during text extraction. This issue is fixed in 6.15.0.
Published: 2026-08-07
Score: 4.8 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability exists in the pypdf library before version 6.15.0. A specially crafted PDF can trigger the Font._collect_cid_character_widths function to expand unusually large CID font width ranges or excessive width entries during text extraction. This causes the process to consume excessive memory and take an extended time to complete, potentially bringing the application to a halt.

Affected Systems

The affected product is the py‑pdf pypdf library. Any deployment that uses pypdf versions earlier than 6.15.0 and processes PDF files – especially untrusted documents – is at risk.

Risk and Exploitability

The CVSS score of 4.8 indicates a moderate severity. EPSS data is not available and the vulnerability is not listed in the CISA KEV catalog, suggesting a lower likelihood of widespread exploitation. The most probable attack vector is the delivery of a malicious PDF to an application that performs text extraction with pypdf; if the exploit is triggered, the application may experience prolonged runtimes and memory pressure sufficient to cause a denial of service.

Generated by OpenCVE AI on August 8, 2026 at 01:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the pypdf package to version 6.15.0 or newer.
  • Ensure that the application’s dependency configuration pins the upgraded library and that deployments use the updated version.
  • Implement safeguards such as limiting PDF size or validating PDFs before processing to reduce the risk of resource exhaustion from untrusted input.

Generated by OpenCVE AI on August 8, 2026 at 01:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-fwg2-594c-jp42 pypdf: Possible long runtimes/large memory usage for large CID font width ranges
History

Sat, 08 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-1050
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


Fri, 07 Aug 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Py-pdf
Py-pdf pypdf
Vendors & Products Py-pdf
Py-pdf pypdf

Fri, 07 Aug 2026 19:15:00 +0000

Type Values Removed Values Added
Description pypdf is a free and open-source pure-python PDF library. Prior to 6.15.0, a crafted PDF can cause long runtimes and large memory consumption when pypdf/_font.py function Font._collect_cid_character_widths expands unusually large CID font /W width ranges or excessive width entries during text extraction. This issue is fixed in 6.15.0.
Title pypdf: Possible long runtimes/large memory usage for large CID font width ranges
Weaknesses CWE-834
References
Metrics cvssV4_0

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


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-07T18:53:46.083Z

Reserved: 2026-08-07T18:26:53.523Z

Link: CVE-2026-71852

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-07T18:53:46Z

Links: CVE-2026-71852 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-08T01:30:03Z

Weaknesses
  • CWE-1050

    Excessive Platform Resource Consumption within a Loop

  • CWE-834

    Excessive Iteration