---
id: CVE-2026-119204
aliases:
  - GHSA-cggf-277g-3q54
title: pypdf has possible large memory usage when parsing page tree
summary: pypdf has possible large memory usage when parsing page tree
severity: high
vendor: pypdf
product: pypdf
ecosystem: pip
affected:
  - pypdf < 6.21.4
patched:
  - pypdf 6.21.4
published: '2026-10-30'
updated: '2026-10-30'
sourceUpdated: '2026-10-30T23:30:04.096691081Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-cggf-277g-3q54'
references:
  - url: 'https://github.com/py-pdf/pypdf/security/advisories/GHSA-cggf-277g-3q54'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-119204'
  - url: 'https://github.com/py-pdf/pypdf/pull/4290'
  - url: >-
      https://github.com/py-pdf/pypdf/commit/ea4ac663133f1b3de1d7a8f2e6fa239802fde79e
  - url: 'https://github.com/py-pdf/pypdf'
  - url: 'https://github.com/py-pdf/pypdf/releases/tag/6.21.4'
  - url: 'https://github.com/advisories/GHSA-cggf-277g-3q54'
tags:
  - osv
  - pip
  - ghsa
epss: 0.00304
epssPercentile: 0.23191
cwe:
  - CWE-400
ingestedAt: '2026-10-31T00:12:28.851Z'
---

## Overview

### Impact

An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires parsing the page tree with many shared resources.

### Patches

This has been fixed in [pypdf==6.21.4](https://github.com/py-pdf/pypdf/releases/tag/6.21.4).

### Workarounds

If you cannot upgrade yet, consider applying the changes from PR [#4290](https://github.com/py-pdf/pypdf/pull/4290).

## Affected packages

- `pypdf < 6.21.4`

## Remediation

Upgrade to a patched release:

- `pypdf 6.21.4`
