---
id: CVE-2026-33699
aliases:
  - GHSA-87mj-5ggw-8qc3
  - PYSEC-2026-3012
title: >-
  pypdf: Possible infinite loop during recovery attempts in
  DictionaryObject.read_from_stream
summary: >-
  pypdf: Possible infinite loop during recovery attempts in
  DictionaryObject.read_from_stream
severity: medium
vendor: pypdf
product: pypdf
ecosystem: pip
affected:
  - pypdf < 6.9.2
patched:
  - pypdf 6.9.2
published: '2026-03-25'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:51:00.069856672Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-87mj-5ggw-8qc3'
references:
  - url: 'https://github.com/py-pdf/pypdf/security/advisories/GHSA-87mj-5ggw-8qc3'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-33699'
  - url: 'https://github.com/py-pdf/pypdf/pull/3693'
  - url: 'https://github.com/py-pdf/pypdf'
  - url: 'https://github.com/py-pdf/pypdf/releases/tag/6.9.2'
tags:
  - osv
  - pip
epss: 0.00583
epssPercentile: 0.45494
ingestedAt: '2026-07-13T18:57:54.870Z'
---

## Overview

### Impact

An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires reading a file in non-strict mode.

### Patches

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

### Workarounds

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

## Affected packages

- `pypdf < 6.9.2`

## Remediation

Upgrade to a patched release:

- `pypdf 6.9.2`
