CVE-2026-31826 json
pypdf: manipulated stream length values can exhaust RAM
published 7mo ago modified 7d ago also EUVD-2026-10924 , GHSA-hqmh-ppp3-xvm7 , PYSEC-2026-3019
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 9%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi pypdf 6.8.0
- py-pdf pypdf 6.8.0
- pypdf2_project pypdf2 6.8.0
- pypdf_project pypdf 6.8.0
- pypdf Debian 14 6.9.0-1
debian advisories DEBIAN-CVE-2026-31826
- python-PyPDF2 openSUSE Tumbleweed 2.11.1-7.1
- python-pypdf openSUSE Tumbleweed 6.8.0-1.1
opensuse advisories openSUSE-SU-2026:10332-1openSUSE-SU-2026:10334-1
Is CVE-2026-31826 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-31826 updated cvss 6.5
pypdf: pypdf: Denial of Service due to excessive memory consumption via crafted PDF
-
Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-ocp-rag-rhel9, openshift-lightspeed/lightspeed-service-api-rhel9, openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9 Red Hat Enterprise Linux AI (RHEL AI) 3 rhelai3/bootc-cuda-rhel9, rhelai3/disk-image-cuda-rhel9 Red Hat OpenShift AI (RHOAI) rhoai/odh-llama-stack-core-rhel9affected: workaround, no fix available “Fix deferred”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 7mo ago
Exploit prediction
0.20% chance of exploitation in the next 30 days, higher than 9% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 6.8 | 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 |
| CNA | 4.0 | 6.8 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pypdf | <6.8.0 |
6.8.0 |
Affected products
- py-pdf pypdf
Classification
- Weakness
-
- CWE-770 Allocation of Resources Without Limits or Throttling
References
-
github.com
/py-pdf/pypdf/pull/3675
web, issue-tracking, patch
-
github.com
/py-pdf/pypdf/security/advisories/GHSA-hqmh-ppp3-xvm7
web, patch, vendor-advisory
-
github.com
/py-pdf/pypdf/commit/3c550b3196adeba1506a26e57c09c09fac75e9aa
web
-
github.com
/py-pdf/pypdf/releases/tag/6.8.0
web, product, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-31826
advisory
-
github.com
/py-pdf/pypdf
package
-
pypi.org
/project/pypdf
package
-
github.com
/advisories/GHSA-hqmh-ppp3-xvm7
advisory
Sources
- CVE List CVE-2026-31826
- GitHub Advisory GHSA-hqmh-ppp3-xvm7
- NVD CVE-2026-31826
- OSV PYSEC-2026-3019
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.