{"id":"CVE-2026-119203","aliases":["GHSA-5849-834g-hvw5"],"title":"pypdf: Possible infinite loop when hitting EOF in standard xref table during trailer search","titleSource":"GitHub_M","descriptionSource":"OSV","declaredSeverity":"HIGH","description":"### Impact\n\nAn attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires opening an incomplete file without a `trailer`.\n\n### Patches\n\nThis has been fixed in [pypdf==6.21.4](https://github.com/py-pdf/pypdf/releases/tag/6.21.4).\n\n### Workarounds\n\nIf you cannot upgrade yet, consider applying the changes from PR [#4289](https://github.com/py-pdf/pypdf/pull/4289).","severity":"high","score":7.1,"published":"2026-10-29T20:30:13.426Z","modified":"2026-10-30T23:30:04.101Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"PyPI","name":"pypdf","sources":[{"name":"OSV · GHSA-5849-834g-hvw5","url":"https://osv.dev/vulnerability/GHSA-5849-834g-hvw5"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"6.21.4"}],"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.21.3","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.4"]}],"sourceAffected":[],"references":["https://github.com/py-pdf/pypdf/security/advisories/GHSA-5849-834g-hvw5","https://github.com/py-pdf/pypdf/pull/4289","https://github.com/py-pdf/pypdf/commit/06593f993789a4b573dd955730c1a7051128bb2a","https://github.com/py-pdf/pypdf/releases/tag/6.21.4","https://nvd.nist.gov/vuln/detail/CVE-2026-119203","https://github.com/py-pdf/pypdf"],"sources":[{"name":"CVE","id":"CVE-2026-119203","modified":"2026-10-30T17:11:01.881Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-119203"},{"name":"OSV","id":"GHSA-5849-834g-hvw5","modified":"2026-10-30T23:30:04.101910128Z","url":"https://osv.dev/vulnerability/GHSA-5849-834g-hvw5"}],"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-119203","source":"GitHub_M","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-10-29T16:04:48.729Z","published":"2026-10-29T20:30:13.426Z","modified":"2026-10-30T17:11:01.881Z"}],"publishers":[{"name":"GitHub_M","role":"CNA","organizationId":"a0819718-46f1-4df5-94e2-005712e83aaa","modified":"2026-10-29T20:30:13.426Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-10-30T17:11:01.881Z"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-5849-834g-hvw5","tags":["x_refsource_CONFIRM"],"source":"GitHub_M"},{"url":"https://github.com/py-pdf/pypdf/pull/4289","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/py-pdf/pypdf/commit/06593f993789a4b573dd955730c1a7051128bb2a","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.21.4","tags":["x_refsource_MISC"],"source":"GitHub_M"}],"weaknesses":[{"id":"CWE-835","description":"CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')","source":"GitHub_M"}],"applicability":[],"prioritization":[{"source":"CISA-ADP","type":"SSVC","role":"CISA Coordinator","timestamp":"2026-10-30T17:10:48.181038Z","decisions":[{"name":"Exploitation","value":"none"},{"name":"Automatable","value":"no"},{"name":"Technical Impact","value":"partial"}]}]},"products":[{"vendor":"py-pdf","name":"pypdf","platforms":[],"versions":[{"version":"< 6.21.4","status":"affected"}],"cpes":[],"source":"GitHub_M","url":"https://www.cve.org/CVERecord?id=CVE-2026-119203"}],"remediation":[],"observedAt":"2026-10-31T00:42:01.738Z","kev":{"status":"not-listed","checkedAt":"2026-10-31T08:55:34.575Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-10-29T21:20:31.826Z","attemptedAt":"2026-10-29T21:20:31.826Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-10-29T21:20:31.815Z","attemptedAt":"2026-10-29T21:20:31.815Z"},{"source":"EUVD","status":"available","checkedAt":"2026-10-29T21:20:31.826Z","attemptedAt":"2026-10-29T21:20:31.826Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-10-29T21:20:31.539Z","attemptedAt":"2026-10-29T21:20:31.539Z"}],"evidence":[{"source":"NVD","id":"CVE-2026-119203","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119203","modified":"2026-10-29T21:17:19.377","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/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","checkedAt":"2026-10-29T21:20:31.826Z"},{"source":"ENISA EUVD","id":"EUVD-2026-113374","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-113374","modified":"Oct 29, 2026, 8:30:13 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:20:31.826Z"}],"aiSummary":{"text":"The pypdf library is vulnerable to a possible infinite loop when opening an incomplete PDF file without a trailer, affecting versions prior to 6.21.4. An attacker can craft a malicious PDF to exploit this weakness. The impact is an infinite loop.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-10-31T00:46:05.812Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-119203"},{"name":"OSV","url":"https://osv.dev/vulnerability/GHSA-5849-834g-hvw5"}]}}