{"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.30558,"ingestedAt":"2026-07-08T18:25:50.834Z","slug":"CVE-2026-57204","body":"## Overview\n\n### Impact\n\nAn 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.\n\n### Patches\nThis has been fixed in [pypdf==6.13.3](https://github.com/py-pdf/pypdf/releases/tag/6.13.3).\n\n### Workarounds\nIf you cannot upgrade yet, consider applying the changes from PR [#3871](https://github.com/py-pdf/pypdf/pull/3871).\n\n## Affected packages\n\n- `pypdf < 6.13.3`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `pypdf 6.13.3`","depth":"sunlit","depthScore":28,"depthScoreParts":{"impact":27.5,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}