{"id":"CVE-2026-31826","aliases":["GHSA-hqmh-ppp3-xvm7","PYSEC-2026-3019"],"url":"https://o3.security/vulnerability/CVE-2026-31826","summary":"pypdf: manipulated stream length values can exhaust RAM","details":"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.","published":"2026-03-10T21:36:52.186Z","modified":"2026-08-05T03:47:24.342773462Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"pypdf","fixedVersion":"6.8.0"}],"fix":{"url":"https://github.com/py-pdf/pypdf/pull/3675","label":"py-pdf/pypdf#3675"},"references":[{"type":"WEB","url":"https://github.com/py-pdf/pypdf/releases/tag/6.8.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31826.json"},{"type":"ADVISORY","url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-hqmh-ppp3-xvm7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31826"},{"type":"FIX","url":"https://github.com/py-pdf/pypdf/pull/3675"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-05T03:47:24.342773462Z"}}