{"id":"CVE-2026-119208","aliases":["GHSA-62m5-6wh8-28x7"],"title":"pypdf: Possible long runtimes/large memory usage for encrypted PDF files","titleSource":"GitHub_M","descriptionSource":"OSV","declaredSeverity":"HIGH","description":"### Impact\n\nAn attacker who uses this vulnerability can craft a PDF which leads to large runtimes/memory usage. This requires accessing the page count of an encrypted PDF file, which itself declares a wrong `/Count` value.\n\n### Patches\n\nThis has been fixed in [pypdf==6.21.3](https://github.com/py-pdf/pypdf/releases/tag/6.21.3).\n\n### Workarounds\n\nIf you cannot upgrade yet, consider applying the changes from PR [#4270](https://github.com/py-pdf/pypdf/pull/4270).","severity":"high","score":7.1,"published":"2026-10-29T20:41:02.879Z","modified":"2026-10-30T23:15:05.408Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"PyPI","name":"pypdf","sources":[{"name":"OSV · GHSA-62m5-6wh8-28x7","url":"https://osv.dev/vulnerability/GHSA-62m5-6wh8-28x7"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"6.21.3"}],"type":"ECOSYSTEM"}],"versions":["1.0","1.1","1.10","1.11","1.12","1.13","1.2","1.3","1.4","1.5","1.6","1.7","1.8","1.9","3.1.0","3.10.0","3.11.0","3.11.1","3.12.0","3.12.1","3.12.2","3.13.0","3.14.0","3.15.0","3.15.1","3.15.2","3.15.3","3.15.4","3.15.5","3.16.0","3.16.1","3.16.2","3.16.3","3.16.4","3.17.0","3.17.1","3.17.2","3.17.3","3.17.4","3.2.0","3.2.1","3.3.0","3.4.0","3.4.1","3.5.0","3.5.1","3.5.2","3.6.0","3.7.0","3.7.1","3.8.0","3.8.1","3.9.0","3.9.1","4.0.0","4.0.1","4.0.2","4.1.0","4.2.0","4.3.0","4.3.1","5.0.0","5.0.1","5.1.0","5.2.0","5.3.0","5.3.1","5.4.0","5.5.0","5.6.0","5.6.1","5.7.0","5.8.0","5.9.0","6.0.0","6.1.0","6.1.1","6.1.2","6.1.3","6.10.0","6.10.1","6.10.2","6.11.0","6.12.0","6.12.1","6.12.2","6.13.0","6.13.1","6.13.2","6.13.3","6.14.0","6.14.1","6.14.2","6.15.0","6.16.0","6.16.1","6.16.2","6.17.0","6.18.0","6.18.1","6.19.0","6.2.0","6.20.0","6.20.1","6.21.0","6.21.1","6.21.2","6.3.0","6.4.0","6.4.1","6.4.2","6.5.0","6.6.0","6.6.1","6.6.2","6.7.0","6.7.1","6.7.2","6.7.3","6.7.4","6.7.5","6.8.0","6.9.0","6.9.1","6.9.2"],"fixed":["6.21.3"]}],"sourceAffected":[],"references":["https://github.com/py-pdf/pypdf/security/advisories/GHSA-62m5-6wh8-28x7","https://github.com/py-pdf/pypdf/pull/4270","https://github.com/py-pdf/pypdf/commit/82b91951dc74496bb3efe6465434f041bb6a5e6b","https://github.com/py-pdf/pypdf/releases/tag/6.21.3","https://nvd.nist.gov/vuln/detail/CVE-2026-119208","https://github.com/py-pdf/pypdf"],"sources":[{"name":"CVE","id":"CVE-2026-119208","modified":"2026-10-29T20:41:02.879Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-119208"},{"name":"OSV","id":"GHSA-62m5-6wh8-28x7","modified":"2026-10-30T23:15:05.408554649Z","url":"https://osv.dev/vulnerability/GHSA-62m5-6wh8-28x7"}],"assessments":[{"source":"GitHub_M","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":7.1},{"source":"OSV","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":7.1}],"cve":{"records":[{"id":"CVE-2026-119208","source":"GitHub_M","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-10-29T16:04:48.729Z","published":"2026-10-29T20:41:02.879Z","modified":"2026-10-29T20:41:02.879Z"}],"publishers":[{"name":"GitHub_M","role":"CNA","organizationId":"a0819718-46f1-4df5-94e2-005712e83aaa","modified":"2026-10-29T20:41:02.879Z"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-62m5-6wh8-28x7","tags":["x_refsource_CONFIRM"],"source":"GitHub_M"},{"url":"https://github.com/py-pdf/pypdf/pull/4270","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/py-pdf/pypdf/commit/82b91951dc74496bb3efe6465434f041bb6a5e6b","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.21.3","tags":["x_refsource_MISC"],"source":"GitHub_M"}],"weaknesses":[{"id":"CWE-400","description":"CWE-400: Uncontrolled Resource Consumption","source":"GitHub_M"}],"applicability":[],"prioritization":[]},"products":[{"vendor":"py-pdf","name":"pypdf","platforms":[],"versions":[{"version":"< 6.21.3","status":"affected"}],"cpes":[],"source":"GitHub_M","url":"https://www.cve.org/CVERecord?id=CVE-2026-119208"}],"remediation":[],"observedAt":"2026-10-30T23:33:00.799Z","kev":{"status":"not-listed","checkedAt":"2026-10-31T09:10:30.844Z"},"coverage":[{"source":"NVD","status":"no-result","checkedAt":"2026-10-29T21:10:34.921Z","attemptedAt":"2026-10-29T21:10:34.921Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-10-29T21:10:32.933Z","attemptedAt":"2026-10-29T21:10:32.933Z"},{"source":"EUVD","status":"available","checkedAt":"2026-10-29T21:10:32.865Z","attemptedAt":"2026-10-29T21:10:32.865Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-10-29T21:10:34.558Z","attemptedAt":"2026-10-29T21:10:34.558Z"}],"evidence":[{"source":"ENISA EUVD","id":"EUVD-2026-113380","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-113380","modified":"Oct 29, 2026, 8:41:02 PM","score":7.1,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","checkedAt":"2026-10-29T21:10:32.865Z"}],"aiSummary":{"text":"pypdf versions less than 6.21.3 may experience large runtimes or memory usage when accessing the page count of an encrypted PDF file with a wrong `/Count` value. An attacker can craft such a PDF. The impact is limited to resource consumption.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-10-31T00:06:15.442Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-119208"},{"name":"OSV","url":"https://osv.dev/vulnerability/GHSA-62m5-6wh8-28x7"}]}}