---
id: CVE-2026-102996
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.18.1, a
  crafted PDF can provide a TrueType or Type1 simple font with an unusually
  large /Widths array, causing pypdf/_font.py
  Font._collect_tt_t1_character_widths to pro…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-400
  - CWE-770
vendor: pypdf_project
product: pypdf
affected:
  - pypdf < 6.18.1
patched:
  - pypdf 6.18.1
published: '2026-09-30'
updated: '2026-10-05'
sourceUpdated: '2026-10-05T15:13:17.070'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-102996'
references:
  - url: >-
      https://github.com/py-pdf/pypdf/commit/0fb26eb8cdd01c44b3b2c9fe8329751be2f7cfd5
    label: security-advisories@github.com
  - url: 'https://github.com/py-pdf/pypdf/pull/4072'
    label: security-advisories@github.com
  - url: 'https://github.com/py-pdf/pypdf/releases/tag/6.18.1'
    label: security-advisories@github.com
  - url: 'https://github.com/py-pdf/pypdf/security/advisories/GHSA-g9cg-prrw-2r8q'
    label: security-advisories@github.com
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-102996.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-102996'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2544277'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-102996'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-102996'
  - url: 'https://github.com/advisories/GHSA-g9cg-prrw-2r8q'
  - url: 'https://github.com/py-pdf/pypdf'
  - url: 'https://pypi.org/project/pypdf'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
  - ghsa
  - pip
  - osv
epss: 0.0034
epssPercentile: 0.27373
aliases:
  - GHSA-g9cg-prrw-2r8q
  - PYSEC-2026-4155
ecosystem: pip
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-09-30T20:48:29.732492Z'
scores:
  nvd: 7.5
  cna: 8.7
  vendor: 7.5
ingestedAt: '2026-09-30T21:25:07.839Z'
---

## Overview

pypdf is a free and open-source pure-python PDF library. Prior to 6.18.1, a crafted PDF can provide a TrueType or Type1 simple font with an unusually large /Widths array, causing pypdf/_font.py Font._collect_tt_t1_character_widths to process entries beyond the 256 character codes meaningful for a simple font and consume excessive memory during operations such as text extraction. This issue is fixed in version 6.18.1.

## Affected

- `pypdf < 6.18.1`

## Remediation

Upgrade past the affected range:

- `pypdf 6.18.1`

## Package advisory (CVE-2026-102996)

Affected packages:

- `pypdf < 6.18.1`

Patched in:

- `pypdf 6.18.1`

Source: https://github.com/advisories/GHSA-g9cg-prrw-2r8q

## Vendor advisories

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