CVE-2025-55197 json
pypdf's Manipulated FlateDecode streams can exhaust RAM
published 2025-08-13 14 mo ago modified 2026-11-02 6 d ago also EUVD-2025-24648 , GHSA-7hfw-26vp-jp8m , PYSEC-2026-1830
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 43%
- public exploits
- 0
- none known
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.
Patch / fix
- pypi pypdf 6.0.0
- py-pdf pypdf 6.0.0
- pypdf2_project pypdf2 6.0.0
- pypdf_project pypdf 6.0.0
- pypdf Debian 14 6.9.0-1
debian advisories DEBIAN-CVE-2025-55197
- python-PyPDF2 openSUSE Tumbleweed 2.11.1-4.1
- python-pypdf openSUSE Tumbleweed 6.0.0-1.1
opensuse advisories openSUSE-SU-2026:10238-1openSUSE-SU-2025:15439-1
- github.com/py-pdf/pypdf#3430 pull request
- github.com/py-pdf/pypdf/releases/tag/6.0.0 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-55197 updated cvss 6.5
pypdf: PyPDF RAM Exhaustion Vulnerability
-
Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-service-api-rhel9, openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9 Red Hat Ansible Automation Platform 2 ansible-automation-platform-24/de-minimal-rhel8, ansible-automation-platform-24/de-minimal-rhel9, ansible-automation-platform-24/lightspeed-rhel8, ansible-automation-platform-25/de-minimal-rhel8, ansible-automation-platform-25/de-minimal-rhel9, ansible-automation-platform-25/lightspeed-rhel8, +9 moreaffected: workaround, no fix available “Fix deferred”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 14 mo ago
Exploit prediction
0.51% chance of exploitation in the next 30 days, higher than 43% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 6.6 | 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 |
| CNA | 4.0 | 6.6 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pypdf | <6.0.0 |
6.0.0 |
Affected products
- py-pdf pypdf
Classification
References
-
github.com
/py-pdf/pypdf/pull/3430
web, patch
-
github.com
/py-pdf/pypdf/security/advisories/GHSA-7hfw-26vp-jp8m
web, mitigation, third-party-advisory
-
github.com
/py-pdf/pypdf/issues/3429
web, issue-tracking
-
github.com
/py-pdf/pypdf/blob/0dd57738bbdcdb63f0fb43d8a6b3d222b6946595/pypdf/filters.py#L72-L143
web, product
-
github.com
/py-pdf/pypdf/releases/tag/6.0.0
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2025-55197
advisory
-
github.com
/py-pdf/pypdf
package
-
pypi.org
/project/pypdf
package
-
github.com
/advisories/GHSA-7hfw-26vp-jp8m
advisory
Sources
- CVE List CVE-2025-55197
- GitHub Advisory GHSA-7hfw-26vp-jp8m
- NVD CVE-2025-55197
- OSV PYSEC-2026-1830
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.