---
id: CVE-2026-57204
aliases:
  - GHSA-jm82-fx9c-mx94
title: 'pypdf: Missing stream length values ignore defined limits'
summary: 'pypdf: Missing stream length values ignore defined limits'
severity: medium
vendor: pypdf
product: pypdf
ecosystem: pip
affected:
  - pypdf < 6.13.3
patched:
  - pypdf 6.13.3
published: '2026-06-18'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:51:08.790625588Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-jm82-fx9c-mx94'
references:
  - url: 'https://github.com/py-pdf/pypdf/security/advisories/GHSA-jm82-fx9c-mx94'
  - url: 'https://github.com/py-pdf/pypdf/pull/3871'
  - url: 'https://github.com/py-pdf/pypdf'
  - url: 'https://github.com/py-pdf/pypdf/releases/tag/6.13.3'
tags:
  - osv
  - pip
epss: 0.00367
epssPercentile: 0.27869
ingestedAt: '2026-07-08T18:25:50.834Z'
---

## Overview

### Impact

An attacker who uses this vulnerability can craft a PDF which leads to large memory usage, as `MAX_DECLARED_STREAM_LENGTH` is sometimes ignored. This requires parsing a content stream without a `/Length` value.

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

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

## Affected packages

- `pypdf < 6.13.3`

## Remediation

Upgrade to a patched release:

- `pypdf 6.13.3`
