{"id":"CVE-2025-55197","aliases":["CVE-2025-55197","GHSA-7hfw-26vp-jp8m","PYSEC-2026-1830"],"related":[],"kind":"vulnerability","state":"published","title":"pypdf's Manipulated FlateDecode streams can exhaust RAM","summary":"pypdf is a free and open-source pure-python PDF library. Prior to version 6.0.0, an attacker can craft a PDF which leads to the RAM being exhausted. This requires just reading the file if a series of FlateDecode filters is used on a malicious cross-reference stream. Other content streams are affected on explicit access. This issue has been fixed in 6.0.0. If an update is not possible, a workaround involves including the fixed code from pypdf.filters.decompress into the existing filters file.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"pypdf is a free and open-source pure-python PDF library. Prior to version 6.0.0, an attacker can craft a PDF which leads to the RAM being exhausted. This requires just reading the file if a series of FlateDecode filters is used on a malicious cross-reference stream. Other content streams are affected on explicit access. This issue has been fixed in 6.0.0. If an update is not possible, a workaround involves including the fixed code from pypdf.filters.decompress into the existing filters file.","source":"cvelist"},{"lang":"en","text":"### Impact\nAn attacker who uses this vulnerability can craft a PDF which leads to the RAM being exhausted. This requires just reading the file if a series of FlateDecode filters is used on a malicious cross-reference stream. Other content streams are affected on explicit access.\n\n### Patches\nThis has been fixed in [pypdf==6.0.0](https://github.com/py-pdf/pypdf/releases/tag/6.0.0).\n\n### Workarounds\nIf you cannot upgrade yet, you might want to implement the workaround for `pypdf.filters.decompress` yourself: https://github.com/py-pdf/pypdf/blob/0dd57738bbdcdb63f0fb43d8a6b3d222b6946595/pypdf/filters.py#L72-L143\n\n### References\nThis issue has been reported in #3429 and fixed in #3430.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Pypdf es una librería PDF gratuita y de código abierto basada en Python. Antes de la versión 6.0.0, un atacante podía manipular un PDF que agotaba la RAM. Esto solo requería leer el archivo si se utilizaban una serie de filtros FlateDecode en un flujo de referencia cruzada malicioso. Otros flujos de contenido se ven afectados con el acceso explícito. Este problema se ha corregido en la versión 6.0.0. Si no es posible actualizar, una solución alternativa consiste en incluir el código corregido de pypdf.filters.decompress en el archivo de filtros existente.","source":"nvd"}],"published":"2025-08-13T19:51:24.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:H/SC:N/SI:N/SA:N/E:U","score":6.6,"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:H/SC:N/SI:N/SA:N/E:U","score":6.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U"}],"cwes":["CWE-400","CWE-770"],"affected":[{"ranges":[{"version":"< 6.0.0","status":"affected"}],"vendor":"py-pdf","product":"pypdf","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.0.0"}],"ecosystem":"PyPI","package":"pypdf","purl":"pkg:pypi/pypdf","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.0.0"}],"vendor":"py-pdf","product":"pypdf","cpe":"cpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.0.0"}],"ecosystem":"PyPI","package":"pypdf","purl":"pkg:pypi/pypdf","source":"pysec"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-7hfw-26vp-jp8m","tags":["mitigation","third-party-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/py-pdf/pypdf/issues/3429","tags":["issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/py-pdf/pypdf/pull/3430","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/py-pdf/pypdf/blob/0dd57738bbdcdb63f0fb43d8a6b3d222b6946595/pypdf/filters.py#L72-L143","tags":["product","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.0.0","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-55197","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/py-pdf/pypdf","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/pypdf","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-7hfw-26vp-jp8m","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-08-14T13:41:25.204Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-55197","url":"https://www.cve.org/CVERecord?id=CVE-2025-55197","licence":"CVE Terms of Use","modified":"2025-08-14T14:50:48.663Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7hfw-26vp-jp8m","url":"https://github.com/advisories/GHSA-7hfw-26vp-jp8m","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:26.651Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-55197","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-55197","licence":"Public domain","modified":"2026-11-02T16:06:04.477Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1830","url":"https://osv.dev/vulnerability/PYSEC-2026-1830","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:59.107Z"}],"updatedAt":"2026-11-25T22:59:02.461Z","epss":{"score":0.00544,"percentile":0.471,"date":"2026-12-01T12:00:22.000Z"}}