Description
pypdf is a free and open-source pure-python PDF library. An attacker who uses an infinite loop vulnerability that is present in versions prior to 6.6.2 can craft a PDF which leads to an infinite loop. This requires accessing the outlines/bookmarks. This has been fixed in pypdf 6.6.2. If projects cannot upgrade yet, consider applying the changes from PR #3610 manually.
Problem types
CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')
Product status
References
github.com/.../pypdf/security/advisories/GHSA-2q4j-m29v-hq73
github.com/py-pdf/pypdf/pull/3610
github.com/...ommit/b1282f8dcdc1a7b41ceab6740ffddfdf31b1fec1
github.com/py-pdf/pypdf/releases/tag/6.6.2