{"id":"CVE-2026-54651","aliases":["GHSA-g9xf-7f8q-9mcj","PYSEC-2026-3018"],"url":"https://o3.security/vulnerability/CVE-2026-54651","summary":"pypdf: Possible infinite loop when processing threads/articles in writer","details":"### Impact\n\nAn attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires merging a file with threads/articles into a writer.\n\n### Patches\n\nThis has been fixed in [pypdf==6.13.1](https://github.com/py-pdf/pypdf/releases/tag/6.13.1).\n\n### Workarounds\n\nIf users cannot upgrade yet, consider applying the changes from PR [#3839](https://github.com/py-pdf/pypdf/pull/3839).","published":"2026-06-22T20:28:28.412Z","modified":"2026-10-21T02:58:34.868007677Z","cvss":null,"epss":{"score":0.00158,"percentile":0.05334,"asOf":"2026-09-14"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"pypdf","fixedVersion":"6.13.1"}],"fix":{"url":"https://github.com/py-pdf/pypdf/pull/3839","label":"py-pdf/pypdf#3839"},"references":[{"type":"WEB","url":"https://github.com/py-pdf/pypdf/releases/tag/6.13.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54651.json"},{"type":"ADVISORY","url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-g9xf-7f8q-9mcj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54651"},{"type":"FIX","url":"https://github.com/py-pdf/pypdf/pull/3839"},{"type":"PACKAGE","url":"https://github.com/py-pdf/pypdf"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-21T02:58:34.868007677Z"}}