# CVE-2025-55197: pypdf's Manipulated FlateDecode streams can exhaust RAM

- Severity: Medium 6.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 47% of CVEs (2026-12-01)
- Published: 2025-08-13T19:51:24.000Z
- Modified: 2026-11-02T16:06:04.477Z
- Also known as: GHSA-7hfw-26vp-jp8m, PYSEC-2026-1830
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- py-pdf pypdf: < 6.0.0; before 6.0.0
- pypdf (PyPI): before 6.0.0

## Every score

- GitHub_M: CVSS:4.0 6.6 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/py-pdf/pypdf/security/advisories/GHSA-7hfw-26vp-jp8m> (mitigation, third-party-advisory, web)
- <https://github.com/py-pdf/pypdf/issues/3429> (issue-tracking, web)
- <https://github.com/py-pdf/pypdf/pull/3430> (patch, web)
- <https://github.com/py-pdf/pypdf/blob/0dd57738bbdcdb63f0fb43d8a6b3d222b6946595/pypdf/filters.py#L72-L143> (product, web)
- <https://github.com/py-pdf/pypdf/releases/tag/6.0.0> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-55197> (advisory)
- <https://github.com/py-pdf/pypdf> (package)
- <https://pypi.org/project/pypdf> (package)
- <https://github.com/advisories/GHSA-7hfw-26vp-jp8m> (advisory)

## Sources

- CVE List: [CVE-2025-55197](https://www.cve.org/CVERecord?id=CVE-2025-55197), CVE Terms of Use, modified 2025-08-14
- GitHub Advisory Database: [GHSA-7hfw-26vp-jp8m](https://github.com/advisories/GHSA-7hfw-26vp-jp8m), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-55197](https://nvd.nist.gov/vuln/detail/CVE-2025-55197), Public domain, modified 2026-11-02
- PyPA Advisory Database: [PYSEC-2026-1830](https://osv.dev/vulnerability/PYSEC-2026-1830), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-55197 · Whole record: https://cve.day/CVE-2025-55197.json · Rebuilt by cve.day 2026-11-25T22:59:02.461Z
