---
id: CVE-2026-119207
aliases:
  - GHSA-4vqv-7265-gm2w
title: pypdf has possible large memory usage for exceptions in strict mode
summary: pypdf has possible large memory usage for exceptions in strict mode
severity: high
vendor: pypdf
product: pypdf
ecosystem: pip
affected:
  - pypdf < 6.21.3
patched:
  - pypdf 6.21.3
published: '2026-10-30'
updated: '2026-10-30'
sourceUpdated: '2026-10-30T23:15:07.229853114Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-4vqv-7265-gm2w'
references:
  - url: 'https://github.com/py-pdf/pypdf/security/advisories/GHSA-4vqv-7265-gm2w'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-119207'
  - url: 'https://github.com/py-pdf/pypdf/pull/4265'
  - url: >-
      https://github.com/py-pdf/pypdf/commit/64270258c0eced720f7960aecf8cef31afd39f8d
  - url: 'https://github.com/py-pdf/pypdf'
  - url: 'https://github.com/py-pdf/pypdf/releases/tag/6.21.3'
  - url: 'https://github.com/advisories/GHSA-4vqv-7265-gm2w'
tags:
  - osv
  - pip
  - ghsa
epss: 0.00304
epssPercentile: 0.2319
cwe:
  - CWE-400
  - CWE-405
ingestedAt: '2026-10-30T23:11:25.769Z'
---

## Overview

### Impact

An attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires loading an invalid dictionary.

### Patches

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

### Workarounds

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

## Affected packages

- `pypdf < 6.21.3`

## Remediation

Upgrade to a patched release:

- `pypdf 6.21.3`
