Path Traversal Vulnerability in PyMuPDF Affects File Processing Functionality
CVE-2026-82035
7.1HIGH
What is CVE-2026-82035?
PyMuPDF versions up to 1.28.2 are susceptible to a path traversal vulnerability in the font branch of the extract_objects() function. This issue arises due to the insecure handling of user-supplied output directory paths when constructing output filenames. An attacker can exploit this by providing a specially crafted PDF, EPUB, XPS, or FB2 file with a BaseFont name that includes encoded path separators. If these are decoded into ../ sequences or absolute paths, it permits unauthorized file writes outside the designated output directory, all while bypassing any authentication or privilege requirements.
Affected Version(s)
PyMuPDF 0 <= 1.8.2
PyMuPDF b2c8f3a859fed35c379a44df566f770dc3e18605
