PyMuPDF 1.28.2 Path Traversal via extract_objects() Font Branch
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, where the output filename is constructed by joining a document-controlled BaseFont name directly onto the user-supplied output directory without stripping path separators or dot-dot sequences. Attackers can supply a crafted PDF, EPUB, XPS, or FB2 file with a BaseFont name containing encoded path separators that decode to ../ sequences or absolute paths, causing arbitrary file writes outside the intended output directory without requiring authentication or elevated privileges.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-82035
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 03:52 UTC · Revision 1
Source evidence
PyMuPDF 1.28.2 Path Traversal via extract_objects() Font Branch
core-osv · Original sourcePublished 14 Sept 2026, 18:38 UTC
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, where the output filename is constructed by joining a document-controlled BaseFont name directly onto the user-supplied output directory without stripping path separators or dot-dot sequences. Attackers can supply a crafted PDF, EPUB, XPS, or FB2 file with a BaseFont name containing encoded path separators that decode to ../ sequences or absolute paths, causing arbitrary file writes outside the intended output directory without requiring authentication or elevated privileges.
osv:CVE-2026-82035
Complete source record
{
"id": "de6289625cf8cfdf2728821ce7387120bbabf84dfcb4449bf76695f43c339844",
"url": "https://osv.dev/vulnerability/CVE-2026-82035",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "PyMuPDF 1.28.2 Path Traversal via extract_objects() Font Branch",
"summary": "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, where the output filename is constructed by joining a document-controlled BaseFont name directly onto the user-supplied output directory without stripping path separators or dot-dot sequences. Attackers can supply a crafted PDF, EPUB, XPS, or FB2 file with a BaseFont name containing encoded path separators that decode to ../ sequences or absolute paths, causing arbitrary file writes outside the intended output directory without requiring authentication or elevated privileges.",
"evidence": "osv:CVE-2026-82035",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-82035",
"aliases": [
"CVE-2026-82035"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/pymupdf/pymupdf",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "b2c8f3a"
},
{
"fixed": "b2c8f3a859fed35c379a44df566f770dc3e18605"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "b2c8f3a"
}
],
"source": "DESCRIPTION"
},
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "b2c8f3a"
}
],
"source": "DESCRIPTION"
},
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "1.28.2"
}
],
"source": "DESCRIPTION"
},
{
"range": [
{
"fixed": "b2c8f3a859fed35c379a44df566f770dc3e18605"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"1.28.2",
"1.28.0",
"1.27.2.3",
"1.27.2.2",
"1.27.2",
"internal-rf2.4.1",
"1.27.1",
"1.26.7",
"1.26.6",
"1.26.5",
"1.26.4",
"1.26.3",
"1.26.1",
"1.26.0",
"1.25.5",
"1.25.4",
"1.25.3",
"1.25.2",
"1.25.1",
"1.25.0",
"1.24.14",
"1.24.13",
"1.24.12",
"1.24.11",
"1.24.10",
"1.24.9",
"1.24.8",
"1.24.7",
"1.24.6",
"1.24.5",
"1.24.4",
"1.24.3",
"1.24.2",
"1.24.1",
"1.24.0",
"1.23.26",
"1.23.25",
"1.23.24",
"1.23.23",
"1.23.22",
"1.23.21",
"1.23.20",
"1.23.19",
"1.23.18",
"1.23.17",
"1.23.16",
"1.23.15",
"1.23.14",
"1.23.13",
"1.23.12",
"1.23.11",
"1.23.10",
"1.23.9",
"1.23.9rc2",
"1.23.9rc1",
"1.23.8",
"1.23.7",
"1.23.6",
"1.23.5",
"1.23.4",
"1.23.3",
"1.23.2",
"1.23.1",
"1.23.0",
"1.23.0rc2_b",
"1.23.0rc1",
"1.22.5",
"1.22.3",
"1.22.2",
"1.22.1",
"1.22.0",
"1.21.1",
"1.21.1rc1",
"1.21.0",
"1.21.0rc2",
"1.21.0rc1",
"1.20.2",
"1.20.1",
"1.20.0",
"1.20.0rc2",
"1.20.0rc1",
"1.19.6",
"1.19.5",
"1.19.4",
"1.19.3",
"1.19.2",
"1.19.1",
"1.19.0",
"1.18.19",
"1.18.18",
"1.18.17",
"1.18.16",
"1.18.15",
"1.18.14",
"1.18.13",
"1.18.11",
"1.18.10",
"1.18.9",
"1.18.8",
"1.18.7",
"1.18.6",
"1.18.5",
"1.18.4",
"1.18.3",
"1.18.2",
"1.18.1",
"1.18.0",
"1.17.7",
"1.17.6",
"1.17.5",
"1.17.4",
"1.17.3",
"1.17.2",
"1.17.1",
"1.17.0",
"1.16.18",
"1.16.17",
"1.16.16",
"1.16.14",
"1.16.13",
"1.16.12",
"1.16.11",
"1.16.10",
"1.16.9",
"1.16.8",
"1.16.7",
"1.16.6",
"1.16.5",
"1.16.4",
"1.16.3",
"1.16.2",
"1.16.1",
"1.16.0",
"1.14.20",
"1.14.19",
"1.14.18",
"1.14.17",
"1.14.16",
"1.14.15",
"1.14.14",
"1.14.13",
"1.14.12",
"1.14.11",
"1.14.10",
"1.14.9",
"1.14.8",
"1.14.7",
"1.14.6",
"1.14.5",
"1.14.3",
"1.14.1",
"1.14.0",
"1.13.20",
"1.13.19",
"1.13.18",
"1.13.17",
"1.13.16",
"1.13.15",
"1.13.14",
"1.13.13",
"1.13.12",
"1.13.11",
"1.13.10",
"1.13.9",
"1.13.8",
"1.13.7",
"1.13.5",
"1.13.4",
"1.13.3",
"v1.12.6",
"v1.12.5",
"v1.12.4",
"1.12.4",
"v1.9.1",
"v1.9",
"v1.8",
"v1.7",
"v1.2"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-82035.json"
}
}
],
"modified": "2026-10-28T02:30:42.113979196Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/82xxx/CVE-2026-82035.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-82035",
"https://www.vulncheck.com/advisories/pymupdf-path-traversal-via-extract-objects-font-branch",
"https://github.com/pymupdf/PyMuPDF/commit/b2c8f3a859fed35c379a44df566f770dc3e18605",
"https://github.com/pymupdf/PyMuPDF"
],
"provider_metadata": {
"cwe_ids": [
"CWE-22"
],
"cna_assigner": "VulnCheck",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"last_affected": "1.8.2"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/82xxx/CVE-2026-82035.json"
}
},
"related_cves": [
{
"value": "CVE-2026-82035",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 510012,
"published_at": "2026-09-14T18:38:34.837+00:00"
}