6.9medium
pypdf: Missing stream length values ignore defined limits
- Severity
- 6.9medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.21% (higher than 11% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-jm82-fx9c-mx94
Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.13.3, a maliciously crafted PDF can cause DoS. An attacker who uses this vulnerability can craft a PDF which leads to large memory usage, as MAX_DECLARED_STREAM_LENGTH is sometimes ignored. This requires parsing a content stream without a /Length value. This issue has been fixed in version 6.13.3.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| py-pdf pypdf | < 6.13.3, before 6.13.3 | CVE List, NVD |
| pypdf (PyPI) | before 6.13.3 | GitHub Advisory Database |
All scores
| GitHub_M | 6.9medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
pypdf is a free and open-source pure-python PDF library. Prior to 6.13.3, a maliciously crafted PDF can cause DoS. An attacker who uses this vulnerability can craft a PDF which leads to large memory usage, as MAX_DECLARED_STREAM_LENGTH is sometimes ignored. This requires parsing a content stream without a /Length value. This issue has been fixed in version 6.13.3.
GitHub Advisory Database
Impact
An attacker who uses this vulnerability can craft a PDF which leads to large memory usage, as MAX_DECLARED_STREAM_LENGTH is sometimes ignored. This requires parsing a content stream without a /Length value.
Patches
This has been fixed in pypdf==6.13.3.
Workarounds
If you cannot upgrade yet, consider applying the changes from PR #3871.
NVD (es)
pypdf es una biblioteca PDF de Python puro, gratuita y de código abierto. Antes de la versión 6.13.3, un PDF creado maliciosamente puede causar DoS. Un atacante que utiliza esta vulnerabilidad puede crear un PDF que provoca un gran uso de memoria, ya que MAX_DECLARED_STREAM_LENGTH a veces se ignora. Esto requiere analizar un flujo de contenido sin un valor /Length. Este problema ha sido solucionado en la versión 6.13.3.
References
| https://github.com/py-pdf/pypdf/security/advisories/GHSA-jm82-fx9c-mx94 | patch, vendor-advisory, web | |
| https://github.com/py-pdf/pypdf/releases/tag/6.13.3 | product, release-notes, web | |
| https://github.com/py-pdf/pypdf/pull/3871 | web | |
| https://github.com/py-pdf/pypdf | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-57204 changed 2026-07-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jm82-fx9c-mx94 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-57204 changed 2026-11-02 | Public domain |