CVE-2025-55197: py-pdf pypdf Uncontrolled Resource Consumption
Vulnerability summary
CVE-2025-55197 is a high (CVSS 7.5) Uncontrolled Resource Consumption vulnerability in py-pdf pypdf. EPSS estimates a 0.48% chance of exploitation in the next 30 days, higher than 39.8% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 2 · Related 4Timeline
- 13-08-2025PublishedVulnerability first disclosed.
- 14-08-2025Last modifiedVulnerability information updated.
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 metrics
9 scores · 7 sources · 2 versions- OSV · PypiEcosystem advisory · calculated8.7HighCVSS: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:UDiffers
- OSV · UbuntuEcosystem advisory · calculated8.7HighCVSS: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:UDiffers
- OSV · WolfiEcosystem advisory · calculated8.7HighCVSS: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:UDiffers
- OSV · ChainguardEcosystem advisory · calculated8.7HighCVSS: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:UDiffers
- NVDNIST6.6MediumCVSS: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
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.48%
Chance of exploitation in the next 30 days
Percentile
40%
Versus all other CVEs
30-day change
+0.04 pp
From 0.44% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-400Uncontrolled Resource ConsumptionThe product does not properly control the allocation and maintenance of a limited resource.
- CWE-770Allocation of Resources Without Limits or ThrottlingThe product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.
Affected systems
Chainguard3 products
- nemo< 2.4.0-r11
- open-webui< 0.6.22-r1
- open-webui-compat< 0.6.22-r1
Debian2 products
- pypdfAll versions (No fix recorded) | < 6.9.0-1
- pypdf2All versions (No fix recorded)
Ubuntu2 products
- pypdfAll versions (No fix recorded)
- pypdf2All versions (No fix recorded)
Wolfi2 products
- open-webui< 0.6.22-r1
- open-webui-compat< 0.6.22-r1
Opensuse1 product
- python-pypdf&distro=openSUSE Tumbleweed< 6.0.0-1.1
Py-pdf1 product
- pypdf< 6.0.0
Pypdf_project1 product
- pypdf< 6.0.0
PyPI1 product
- pypdf< 6.0.0
8 vendors · 13 products
References
14 links- github.com/py-pdf/pypdf/security/advisories/GHSA-7hfw-26vp-jp8mX Refsource CONFIRMWEBREPORTAdvisoryMitigationThird Party Advisory
- github.com/py-pdf/pypdf/blob/0dd57738bbdcdb63f0fb43d8a6b3d222b6946595/pypdf/filters.pyX Refsource MISCWEBREPORTProduct
- github.com/py-pdf/pypdfPACKAGE
- pypi.org/project/pypdfPACKAGE