PyMuPDF through 1.28.2, fixed in commit b2c8f3a, contains a path traversal vulnerability in the font branch of extract_objects() in src/__main__.py,… (CVE-2026-82035)
PyMuPDF versions through 1.28.2 contain a path traversal vulnerability in the font branch of the extract_objects() function. This vulnerability allows an attacker to craft a malicious PDF, EPUB, XPS, or FB2 file with a BaseFont name that includes encoded path separators, which decode to directory traversal sequences or absolute paths. As a result, arbitrary files can be written outside the intended output directory without authentication or elevated privileges. The issue was fixed in a commit identified as b2c8f3a.
AI Analysis
Technical Summary
PyMuPDF versions up to 1.28.2 have a path traversal vulnerability in the font branch of the extract_objects() function located in src/__main__.py. The vulnerability arises because the output filename is constructed by concatenating a document-controlled BaseFont name directly onto a user-supplied output directory without sanitizing path separators or dot-dot sequences. An attacker can exploit this by supplying a crafted document (PDF, EPUB, XPS, or FB2) with a BaseFont name containing encoded path separators that decode to '../' sequences or absolute paths, enabling arbitrary file writes outside the intended directory. This flaw does not require authentication or elevated privileges to exploit. The vulnerability is tracked as CVE-2026-82035 and has a CVSS 3.1 score of 7.1 (high severity). The issue was fixed in commit b2c8f3a.
Potential Impact
Successful exploitation allows an attacker to write arbitrary files to locations outside the intended output directory. This can lead to unauthorized file creation or modification, potentially impacting system integrity. The vulnerability does not affect confidentiality but has a high impact on integrity and a low impact on availability. No authentication or elevated privileges are required to exploit this vulnerability.
Mitigation Recommendations
A fix for this vulnerability is available and was implemented in commit b2c8f3a. Users should update PyMuPDF to a version that includes this commit to remediate the vulnerability. Since this is not a cloud service, users must apply the patch themselves. Patch status is confirmed by the presence of the fixing commit. Until updated, avoid processing untrusted documents with affected versions.
PyMuPDF through 1.28.2, fixed in commit b2c8f3a, contains a path traversal vulnerability in the font branch of extract_objects() in src/__main__.py,… (CVE-2026-82035)
Description
PyMuPDF versions through 1.28.2 contain a path traversal vulnerability in the font branch of the extract_objects() function. This vulnerability allows an attacker to craft a malicious PDF, EPUB, XPS, or FB2 file with a BaseFont name that includes encoded path separators, which decode to directory traversal sequences or absolute paths. As a result, arbitrary files can be written outside the intended output directory without authentication or elevated privileges. The issue was fixed in a commit identified as b2c8f3a.
CVSS v3.1
Score 7.1high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
PyMuPDF versions up to 1.28.2 have a path traversal vulnerability in the font branch of the extract_objects() function located in src/__main__.py. The vulnerability arises because the output filename is constructed by concatenating a document-controlled BaseFont name directly onto a user-supplied output directory without sanitizing path separators or dot-dot sequences. An attacker can exploit this by supplying a crafted document (PDF, EPUB, XPS, or FB2) with a BaseFont name containing encoded path separators that decode to '../' sequences or absolute paths, enabling arbitrary file writes outside the intended directory. This flaw does not require authentication or elevated privileges to exploit. The vulnerability is tracked as CVE-2026-82035 and has a CVSS 3.1 score of 7.1 (high severity). The issue was fixed in commit b2c8f3a.
Potential Impact
Successful exploitation allows an attacker to write arbitrary files to locations outside the intended output directory. This can lead to unauthorized file creation or modification, potentially impacting system integrity. The vulnerability does not affect confidentiality but has a high impact on integrity and a low impact on availability. No authentication or elevated privileges are required to exploit this vulnerability.
Mitigation Recommendations
A fix for this vulnerability is available and was implemented in commit b2c8f3a. Users should update PyMuPDF to a version that includes this commit to remediate the vulnerability. Since this is not a cloud service, users must apply the patch themselves. Patch status is confirmed by the presence of the fixing commit. Until updated, avoid processing untrusted documents with affected versions.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-434w-92hw-f2m3
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-82035"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6aa8a1ca55bf5e2cf5f3e905
Added to database: 09/15/2026, 01:39:22 UTC
Last enriched: 09/15/2026, 02:01:00 UTC
Last updated: 09/15/2026, 03:01:38 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.