---
id: CVE-2026-82035
title: >-
  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 …
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 …
severity: high
cvss: 7.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L'
cwe:
  - CWE-22
vendor: PyMuPDF
product: PyMuPDF
affected:
  - PyMuPDF <= 1.8.2
published: '2026-09-14'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T20:44:42.207'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-82035'
references:
  - url: >-
      https://github.com/pymupdf/PyMuPDF/commit/b2c8f3a859fed35c379a44df566f770dc3e18605
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/pymupdf-path-traversal-via-extract-objects-font-branch
    label: disclosure@vulncheck.com
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-82035.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-82035'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2533285'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-82035'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-82035'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00509
epssPercentile: 0.40876
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-14T19:11:47.649926Z'
ingestedAt: '2026-09-14T19:13:23.470Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Important · affected: Red Hat Enterprise Linux AI (RHEL AI) 3 · no fix planned: Red Hat Enterprise Linux AI (RHEL AI) 3 · updated 2026-09-14 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-82035.json)
