---
id: CVE-2026-71852
title: pypdf is a free and open-source pure-python PDF library
summary: >-
  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…
severity: low
cvss: 3.3
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L'
cwe:
  - CWE-834
  - CWE-1050
vendor: pypdf_project
product: pypdf
affected:
  - pypdf < 6.15.0
patched:
  - pypdf 6.15.0
published: '2026-08-07'
updated: '2026-10-05'
sourceUpdated: '2026-10-05T17:32:03.353'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-71852'
references:
  - url: >-
      https://github.com/py-pdf/pypdf/commit/51cb6acf9e8a35b77e90b4d87d28fe3e1416d7d7
    label: security-advisories@github.com
  - url: 'https://github.com/py-pdf/pypdf/pull/3946'
    label: security-advisories@github.com
  - url: 'https://github.com/py-pdf/pypdf/releases/tag/6.15.0'
    label: security-advisories@github.com
  - url: 'https://github.com/py-pdf/pypdf/security/advisories/GHSA-fwg2-594c-jp42'
    label: security-advisories@github.com
  - url: 'https://github.com/py-pdf/pypdf'
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-71852.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-71852'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2512615'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-71852'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-71852'
tags:
  - nvd
  - osv
  - pip
  - csaf
  - vex
  - red-hat
  - score-dispute
epss: 0.00125
epssPercentile: 0.02215
aliases:
  - GHSA-fwg2-594c-jp42
  - PYSEC-2026-3656
ecosystem: pip
ingestedAt: '2026-08-07T19:14:14.302Z'
scores:
  nvd: 3.3
  vendor: 5.5
---

## Overview

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.

## Affected

- `pypdf < 6.15.0`

## Remediation

Upgrade past the affected range:

- `pypdf 6.15.0`

## Package advisory (CVE-2026-71852)

Affected packages:

- `pypdf < 6.15.0`

Patched in:

- `pypdf 6.15.0`

Source: https://osv.dev/vulnerability/GHSA-fwg2-594c-jp42

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Exploit Intelligence, Lightspeed Core, OpenShift Lightspeed, Red Hat Ansible Automation Platform 2, Red Hat Enterprise Linux AI (RHEL AI) 3, Red Hat OpenShift AI (RHOAI), … · no fix planned: Exploit Intelligence, Red Hat Ansible Automation Platform 2, Red Hat Quay 3, Lightspeed Core, … · updated 2026-10-15 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-71852.json)
