PyPDF's Manipulated FlateDecode streams can exhaust RAM
Impact
An 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.
Patches
This has been fixed in pypdf==6.0.0.
Workarounds
If 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
References
This issue has been reported in #3429 and fixed in #3430.
Betroffene Software
Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.
| Plattform | Paket | Anfällige Versionen | Behoben in |
|---|---|---|---|
| Python (PyPI) | pypdf | < 6.0.0 | 6.0.0 |
Verweise
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-7hfw-26vp-jp8m
- https://nvd.nist.gov/vuln/detail/CVE-2025-55197
- https://github.com/py-pdf/pypdf/issues/3429
- https://github.com/py-pdf/pypdf/pull/3430
- https://github.com/py-pdf/pypdf
- https://github.com/py-pdf/pypdf/blob/0dd57738bbdcdb63f0fb43d8a6b3d222b6946595/pypdf/filters.py#L72-L143
- https://github.com/py-pdf/pypdf/releases/tag/6.0.0
- https://pypi.org/project/pypdf
- https://github.com/advisories/GHSA-7hfw-26vp-jp8m
- CVSS-Vektor
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- Schwäche (CWE)
CWE-400, CWE-770- Plattform
- Python (PyPI)
- Paket
pypdf- Veröffentlicht
- 13.08.2025
- Aktualisiert
- 11.10.2026 15:17
Quellen und Lizenzen
OSV / GitHub Advisory Database - PYSEC-2026-1830 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-7hfw-26vp-jp8m - CC BY 4.0
Schwachstellenhistorie: pypdf
Alle veröffentlichten Schwachstellen dieses Pakets (Python (PyPI)), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.
- Einträge insgesamt
- 54
- Erste → letzte
- 06.2023 10.2026
- Ohne Fix
- 0
- In Angriffen ausgenutzt
- 0
Verteilung nach Schweregrad
- Hoch 10
- Mittel 41
- Niedrig 3
Veröffentlichungen pro Jahr
- 2023: 2
- 2024: 0
- 2025: 4
- 2026: 48
-
PyPDF's Manipulated FlateDecode streams can exhaust RAM dieser Eintrag
Erkennen Sie Schwachstellen in Ihrer Anwendung
Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.