CVE-2026-57204
JSON

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 packageVersionsReported by
py-pdf pypdf< 6.13.3, before 6.13.3CVE List, NVD
pypdf (PyPI)before 6.13.3GitHub Advisory Database

All scores

GitHub_M6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Classification

CWE-400CWE-770

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

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

Sources

SourceRecordLicence
CVE ListCVE-2026-57204 changed 2026-07-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-jm82-fx9c-mx94 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-57204 changed 2026-11-02Public domain