Advisory

GHSA-jm82-fx9c-mx94

Also known as: CVE-2026-57204

Summary

pypdf: Missing stream length values ignore defined limits

Details

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.

Workarounds
If you cannot upgrade yet, consider applying the changes from PR #3871.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-06-18 14:28 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

pypdf

PyPI · All systems

Affected

  • introduced 0, fixed 6.13.3 (ecosystem)

Fixed versions

6.13.3

Fix

  • Fixed version 6.13.3
    pip install --upgrade pypdf==6.13.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences