{"id":"CVE-2026-119205","aliases":["GHSA-mfr5-77xh-9j7h"],"title":"pypdf: Possible infinite loop when cloning dictionaries","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 cloning/duplicating a `DictionaryObject`.\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 [#4288](https://github.com/py-pdf/pypdf/pull/4288).","severity":"high","score":7.1,"published":"2026-10-29T20:35:33.902Z","modified":"2026-10-30T23:30:04.094Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"PyPI","name":"pypdf","sources":[{"name":"OSV · GHSA-mfr5-77xh-9j7h","url":"https://osv.dev/vulnerability/GHSA-mfr5-77xh-9j7h"}],"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-mfr5-77xh-9j7h","https://github.com/py-pdf/pypdf/pull/4288","https://github.com/py-pdf/pypdf/commit/f176db1a1f7f9af3e472e69a843ef1175653b044","https://github.com/py-pdf/pypdf/releases/tag/6.21.4","https://nvd.nist.gov/vuln/detail/CVE-2026-119205","https://github.com/py-pdf/pypdf"],"sources":[{"name":"CVE","id":"CVE-2026-119205","modified":"2026-10-30T16:00:42.997Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-119205"},{"name":"OSV","id":"GHSA-mfr5-77xh-9j7h","modified":"2026-10-30T23:30:04.094971776Z","url":"https://osv.dev/vulnerability/GHSA-mfr5-77xh-9j7h"}],"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-119205","source":"GitHub_M","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-10-29T16:04:48.729Z","published":"2026-10-29T20:35:33.902Z","modified":"2026-10-30T16:00:42.997Z"}],"publishers":[{"name":"GitHub_M","role":"CNA","organizationId":"a0819718-46f1-4df5-94e2-005712e83aaa","modified":"2026-10-29T20:35:33.902Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-10-30T16:00:42.997Z"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-mfr5-77xh-9j7h","tags":["x_refsource_CONFIRM"],"source":"GitHub_M"},{"url":"https://github.com/py-pdf/pypdf/pull/4288","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/py-pdf/pypdf/commit/f176db1a1f7f9af3e472e69a843ef1175653b044","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-30T15:47:20.322109Z","decisions":[{"name":"Exploitation","value":"none"},{"name":"Automatable","value":"yes"},{"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-119205"}],"remediation":[],"observedAt":"2026-10-31T00:42:05.554Z","kev":{"status":"not-listed","checkedAt":"2026-10-31T08:55:34.575Z"},"coverage":[{"source":"NVD","status":"no-result","checkedAt":"2026-10-29T21:15:32.647Z","attemptedAt":"2026-10-29T21:15:32.647Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-10-29T21:15:32.880Z","attemptedAt":"2026-10-29T21:15:32.880Z"},{"source":"EUVD","status":"available","checkedAt":"2026-10-29T21:15:33.315Z","attemptedAt":"2026-10-29T21:15:33.315Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-10-29T21:15:32.777Z","attemptedAt":"2026-10-29T21:15:32.777Z"}],"evidence":[{"source":"ENISA EUVD","id":"EUVD-2026-113377","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-113377","modified":"Oct 29, 2026, 8:35:33 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:15:33.315Z"}],"aiSummary":{"text":"pypdf versions before 6.21.4 may enter an infinite loop when cloning dictionaries, potentially caused by an attacker crafting a malicious PDF. The vulnerability requires cloning a DictionaryObject.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-10-31T00:46:04.698Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-119205"},{"name":"OSV","url":"https://osv.dev/vulnerability/GHSA-mfr5-77xh-9j7h"}]}}