---
id: CVE-2026-71870
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 large memory consumption when pypdf/_cmap.py function
  parse_bfrange parses unusually large source-code or destination-string tokens
  in a fo…
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-400
  - CWE-770
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:41:13.103'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-71870'
references:
  - url: >-
      https://github.com/py-pdf/pypdf/commit/afba8080e19d29a3c256a742b340995e695b35aa
    label: security-advisories@github.com
  - url: 'https://github.com/py-pdf/pypdf/pull/3944'
    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-fp3f-mc75-235c'
    label: security-advisories@github.com
  - url: 'https://github.com/advisories/GHSA-fp3f-mc75-235c'
  - url: 'https://github.com/py-pdf/pypdf'
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-71870.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-71870'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2512627'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-71870'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-71870'
tags:
  - nvd
  - ghsa
  - pip
  - osv
  - csaf
  - vex
  - red-hat
  - score-dispute
epss: 0.00125
epssPercentile: 0.02215
aliases:
  - GHSA-fp3f-mc75-235c
  - PYSEC-2026-3655
ecosystem: pip
ingestedAt: '2026-08-07T20:16:41.557Z'
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 large memory consumption when pypdf/_cmap.py function parse_bfrange parses unusually large source-code or destination-string tokens in a font /ToUnicode CMap 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-71870)

Affected packages:

- `pypdf < 6.15.0`

Patched in:

- `pypdf 6.15.0`

Source: https://github.com/advisories/GHSA-fp3f-mc75-235c

## 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-71870.json)
