CVE-2026-31826
MEDIUMpypdf < 6.8.0 - Denial of Service via Large /Length Value in Content Stream
Title source: llmDescription
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.
References (3)
Core 3
Core References
Vendor Advisory x_refsource_confirm
https://github.com/py-pdf/pypdf/security/advisories/GHSA-hqmh-ppp3-xvm7
Issue Tracking x_refsource_misc
https://github.com/py-pdf/pypdf/pull/3675
Release Notes x_refsource_misc
https://github.com/py-pdf/pypdf/releases/tag/6.8.0
Scores
CVSS v3
5.5
EPSS
0.0017
EPSS Percentile
6.8%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-770
Status
published
Products (3)
py-pdf/pypdf
< 6.8.0
pypdf_project/pypdf
< 6.8.0
pypi/pypdf
0 - 6.8.0PyPI
Published
Mar 10, 2026
Tracked Since
Mar 11, 2026