{"id":"CVE-2026-57204","aliases":["CVE-2026-57204","GHSA-jm82-fx9c-mx94"],"related":[],"kind":"vulnerability","state":"published","title":"pypdf: Missing stream length values ignore defined limits","summary":"pypdf is a free and open-source pure-python PDF library. Prior to 6.13.3, a maliciously crafted PDF can cause DoS. 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. This issue has been fixed in version 6.13.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"pypdf is a free and open-source pure-python PDF library. Prior to 6.13.3, a maliciously crafted PDF can cause DoS. 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. This issue has been fixed in version 6.13.3.","source":"cvelist"},{"lang":"en","text":"### 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).","format":"markdown","source":"ghsa"},{"lang":"es","text":"pypdf es una biblioteca PDF de Python puro, gratuita y de código abierto. Antes de la versión 6.13.3, un PDF creado maliciosamente puede causar DoS. Un atacante que utiliza esta vulnerabilidad puede crear un PDF que provoca un gran uso de memoria, ya que MAX_DECLARED_STREAM_LENGTH a veces se ignora. Esto requiere analizar un flujo de contenido sin un valor /Length. Este problema ha sido solucionado en la versión 6.13.3.","source":"nvd"}],"published":"2026-06-18T14:28:49.000Z","modified":"2026-11-02T16:06:04.477Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-400","CWE-770"],"affected":[{"ranges":[{"version":"< 6.13.3","status":"affected"}],"vendor":"py-pdf","product":"pypdf","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.13.3"}],"ecosystem":"PyPI","package":"pypdf","purl":"pkg:pypi/pypdf","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.13.3"}],"vendor":"py-pdf","product":"pypdf","cpe":"cpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-jm82-fx9c-mx94","tags":["patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.13.3","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/py-pdf/pypdf/pull/3871","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/py-pdf/pypdf","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-07-01T13:57:13.824Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-57204","url":"https://www.cve.org/CVERecord?id=CVE-2026-57204","licence":"CVE Terms of Use","modified":"2026-07-01T14:29:01.785Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jm82-fx9c-mx94","url":"https://github.com/advisories/GHSA-jm82-fx9c-mx94","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:08.790Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-57204","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57204","licence":"Public domain","modified":"2026-11-02T16:06:04.477Z"}],"updatedAt":"2026-11-25T22:59:26.734Z","epss":{"score":0.00206,"percentile":0.11304,"date":"2026-12-01T12:00:22.000Z"}}