{"id":"CVE-2026-54651","aliases":["CVE-2026-54651","GHSA-g9xf-7f8q-9mcj","PYSEC-2026-3018"],"related":[],"kind":"vulnerability","state":"published","title":"pypdf: Possible infinite loop when processing threads/articles in writer","summary":"pypdf is a free and open-source pure-python PDF library. Prior to 6.13.1, an 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. This vulnerability is fixed in 6.13.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"pypdf is a free and open-source pure-python PDF library. Prior to 6.13.1, an 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. This vulnerability is fixed in 6.13.1.","source":"cvelist"},{"lang":"en","text":"### 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).","format":"markdown","source":"ghsa"},{"lang":"es","text":"pypdf es una biblioteca PDF de Python puro, gratuita y de código abierto. Antes de la versión 6.13.1, un atacante que explota esta vulnerabilidad puede crear un PDF que provoca un bucle infinito. Esto requiere fusionar un archivo con hilos/artículos en un escritor. Esta vulnerabilidad está corregida en la versión 6.13.1.","source":"nvd"}],"published":"2026-06-22T20:28:28.412Z","modified":"2026-11-02T16:06:04.477Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}],"cwes":["CWE-835"],"affected":[{"ranges":[{"version":"< 6.13.1","status":"affected"}],"vendor":"py-pdf","product":"pypdf","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.13.1"}],"ecosystem":"PyPI","package":"pypdf","purl":"pkg:pypi/pypdf","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.13.1"}],"vendor":"py-pdf","product":"pypdf","cpe":"cpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.13.1"}],"ecosystem":"PyPI","package":"pypdf","purl":"pkg:pypi/pypdf","source":"pysec"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-g9xf-7f8q-9mcj","tags":["mitigation","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/py-pdf/pypdf/pull/3839","tags":["issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/py-pdf/pypdf/releases/tag/6.13.1","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54651","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/py-pdf/pypdf","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/pypdf","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-g9xf-7f8q-9mcj","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-23T12:09:57.316Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54651","url":"https://www.cve.org/CVERecord?id=CVE-2026-54651","licence":"CVE Terms of Use","modified":"2026-06-23T12:10:07.463Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g9xf-7f8q-9mcj","url":"https://github.com/advisories/GHSA-g9xf-7f8q-9mcj","licence":"CC-BY-4.0","modified":"2026-07-13T16:42:31.458Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54651","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54651","licence":"Public domain","modified":"2026-11-02T16:06:04.477Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3018","url":"https://osv.dev/vulnerability/PYSEC-2026-3018","licence":"CC-BY-4.0","modified":"2026-07-13T16:33:05.720Z"}],"updatedAt":"2026-11-25T22:59:25.415Z","epss":{"score":0.0011,"percentile":0.01405,"date":"2026-12-01T12:00:22.000Z"}}