# CVE-2026-31826: pypdf: manipulated stream length values can exhaust RAM

- Priority: **Routine**
- Reason: Not severe (CVSS 6.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-03-10 · Modified: 2026-03-11
- Aliases: GHSA-hqmh-ppp3-xvm7, PYSEC-2026-3019, UBUNTU-CVE-2026-31826, DEBIAN-CVE-2026-31826, CGA-29j8-f3w4-7625, CGA-r476-7v24-rrhx, openSUSE-SU-2026:10332-1, openSUSE-SU-2026:10334-1, openSUSE-SU-2026:20375-1, CGA-246x-87p5-3g89, CGA-cmm8-6xrw-pcv3, CGA-fxh3-3w76-2m4g
- Record: https://cvemate.com/vulnerability/CVE-2026-31826 · JSON: https://cvemate.com/vulnerability/CVE-2026-31826/json

## Description

```text
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.
```

## Signals

- CVSS: 6.8 medium (v4.0, CVE.org) 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.197%, percentile 9.937%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard litellm (Chainguard): \< 1.81.14-r1
- chainguard nemo (Chainguard): \< 2.7.0-r2
- chainguard open-webui (Chainguard): \< 0.8.10-r1
- wolfi open-webui (Wolfi): \< 0.8.10-r1
- debian pypdf (Debian): All versions (No fix recorded) \| \< 6.9.0-1
- debian pypdf2 (Debian): All versions (No fix recorded)
- ubuntu pypdf (Ubuntu): All versions (No fix recorded)
- py-pdf pypdf: \< 6.8.0
- pypdf\_project pypdf: \< 6.8.0
- PyPI pypdf (PyPI): \< 6.8.0
- opensuse python-PyPDF2&distro=openSUSE Leap 16.0 (openSUSE): \< 2.11.1-bp160.4.1
- opensuse python-PyPDF2&distro=openSUSE Tumbleweed (openSUSE): \< 2.11.1-7.1
- opensuse python-pypdf&distro=openSUSE Tumbleweed (openSUSE): \< 6.8.0-1.1

## References

- <https://github.com/py-pdf/pypdf/security/advisories/GHSA-hqmh-ppp3-xvm7>
- <https://github.com/py-pdf/pypdf/pull/3675>
- <https://github.com/py-pdf/pypdf/releases/tag/6.8.0>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-31826>
- <https://github.com/py-pdf/pypdf/commit/3c550b3196adeba1506a26e57c09c09fac75e9aa>
- <https://github.com/py-pdf/pypdf>
- <https://pypi.org/project/pypdf>
- <https://github.com/advisories/GHSA-hqmh-ppp3-xvm7>
- <https://ubuntu.com/security/CVE-2026-31826>
- <https://www.cve.org/CVERecord?id=CVE-2026-31826>
- <https://security-tracker.debian.org/tracker/CVE-2026-31826>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31826.json>
- <https://www.suse.com/security/cve/CVE-2026-31826>
- <https://bugzilla.suse.com/1259508>

---

Data as of 2026-12-05T12:51:06.930Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
