CVE-2026-31826

pypdf is a free and open-source pure-python PDF library. Prior to 6.8.0, an attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires parsing a content stream with a rather large /Length value, regardless of the actual data length inside the stream. This vulnerability is fixed in 6.8.0.
Configurations

Configuration 1 (hide)

cpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:*:*:*

History

02 Nov 2026, 16:06

Type Values Removed Values Added
First Time Py-pdf
Py-pdf pypdf
CPE cpe:2.3:a:pypdf_project:pypdf:*:*:*:*:*:*:*:* cpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:*:*:*

17 Mar 2026, 20:52

Type Values Removed Values Added
First Time Pypdf Project pypdf
Pypdf Project
CPE cpe:2.3:a:pypdf_project:pypdf:*:*:*:*:*:*:*:*
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.5
References () https://github.com/py-pdf/pypdf/pull/3675 - () https://github.com/py-pdf/pypdf/pull/3675 - Issue Tracking, Patch
References () https://github.com/py-pdf/pypdf/releases/tag/6.8.0 - () https://github.com/py-pdf/pypdf/releases/tag/6.8.0 - Product, Release Notes
References () https://github.com/py-pdf/pypdf/security/advisories/GHSA-hqmh-ppp3-xvm7 - () https://github.com/py-pdf/pypdf/security/advisories/GHSA-hqmh-ppp3-xvm7 - Patch, Vendor Advisory

11 Mar 2026, 13:52

Type Values Removed Values Added
Summary
  • (es) pypdf es una biblioteca PDF pura de Python, gratuita y de código abierto. Antes de la 6.8.0, un atacante que explota esta vulnerabilidad puede crear un PDF que provoca un gran consumo de memoria. Esto requiere analizar una secuencia de contenido con un valor /Length bastante grande, independientemente de la longitud real de los datos dentro de la secuencia. Esta vulnerabilidad está corregida en la 6.8.0.

10 Mar 2026, 22:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-03-10 22:16

Updated : 2026-11-02 16:06


NVD link : CVE-2026-31826

Mitre link : CVE-2026-31826

CVE.ORG link : CVE-2026-31826


JSON object : View

Products Affected

py-pdf

  • pypdf
CWE
CWE-770

Allocation of Resources Without Limits or Throttling