---
id: CVE-2026-119203
aliases:
  - GHSA-5849-834g-hvw5
title: >-
  pypdf has possible infinite loop when hitting EOF in standard xref table
  during trailer search
summary: >-
  pypdf has possible infinite loop when hitting EOF in standard xref table
  during trailer search
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.101910128Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-5849-834g-hvw5'
references:
  - url: 'https://github.com/py-pdf/pypdf/security/advisories/GHSA-5849-834g-hvw5'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-119203'
  - url: 'https://github.com/py-pdf/pypdf/pull/4289'
  - url: >-
      https://github.com/py-pdf/pypdf/commit/06593f993789a4b573dd955730c1a7051128bb2a
  - 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-5849-834g-hvw5'
tags:
  - osv
  - pip
  - ghsa
epss: 0.00304
epssPercentile: 0.23191
cwe:
  - CWE-835
ingestedAt: '2026-10-31T00:12:28.849Z'
---

## Overview

### Impact

An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires opening an incomplete file without a `trailer`.

### 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 [#4289](https://github.com/py-pdf/pypdf/pull/4289).

## Affected packages

- `pypdf < 6.21.4`

## Remediation

Upgrade to a patched release:

- `pypdf 6.21.4`
