CVE-2026-31826CWE-770

pypdf: manipulated stream length values can exhaust RAM

Medium · published March 10, 2026

CVSS v4.0
6.8
EPSS
0%
Percentile
7.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
6.8 · MEDIUM
Vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
EPSS
0.00186 · 7.8th percentile
Weakness
CWE-770 · Allocation of Resources Without Limits or Throttling
Published
2026-03-10T21:36Z
EPSS history
Timeline
  • 10 MAR 21:36Z
    pypdf: manipulated stream length values can exhaust RAM
    cvelistv5