Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Pypdf Project | Pypdf | < 6.0.0 |
Related Weaknesses (CWE)
References
- https://github.com/py-pdf/pypdf/blob/0dd57738bbdcdb63f0fb43d8a6b3d222b6946595/pyProduct
- https://github.com/py-pdf/pypdf/issues/3429Issue Tracking
- https://github.com/py-pdf/pypdf/pull/3430Patch
- https://github.com/py-pdf/pypdf/releases/tag/6.0.0Release Notes
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-7hfw-26vp-jp8mMitigationThird Party Advisory
FAQ
What is CVE-2025-55197?
CVE-2025-55197 is a vulnerability with a CVSS score of 7.5 (HIGH). 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 ...
How severe is CVE-2025-55197?
CVE-2025-55197 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2025-55197?
Check the references section above for vendor advisories and patch information. Affected products include: Pypdf Project Pypdf.