Skip to content
Heist/ feed
Back to feed
High

pymupdf — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-82035

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
pymupdf
Affected versions
1.16.11-1, 1.17.4+ds1-2build2, 1.17.4+ds1-2build3, 1.19.2+ds1-1ubuntu1, 1.22.5+ds1-1, 1.22.5+ds1-1build1, 1.22.5+ds1-1build2, 1.23.7+ds1-1ubuntu1, 1.23.7+ds1-1ubuntu2, 1.25.4+ds1-4, 1.26.7+ds1-1, 1.26.7+ds1-1build1
Fixed versions
Not specified
CVEs
CVE-2026-82035
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:20 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-82035

core-osv · Original source

Published 14 Sept 2026, 19:17 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:UBUNTU-CVE-2026-82035

pymupdf

Fixed versions: Not specified

pymupdf

Fixed versions: Not specified

pymupdf

Fixed versions: Not specified

pymupdf

Fixed versions: Not specified

pymupdf

Fixed versions: Not specified

Complete source record
{
  "id": "fc9833a07102135626ea8d64a2015940c110a4ad11ccb47ff29b3cc491a7b725",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-82035",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-82035",
    "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:UBUNTU-CVE-2026-82035",
    "products": [
      {
        "name": {
          "value": "pymupdf",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.16.11-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pymupdf",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.17.4+ds1-2build2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.17.4+ds1-2build3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.19.2+ds1-1ubuntu1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pymupdf",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.22.5+ds1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.22.5+ds1-1build1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.22.5+ds1-1build2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.23.7+ds1-1ubuntu1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.23.7+ds1-1ubuntu2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pymupdf",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.26.7+ds1-1build1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pymupdf",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.25.4+ds1-4",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.26.7+ds1-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.26.7+ds1-1build1",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-82035",
      "aliases": [
        "UBUNTU-CVE-2026-82035"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L"
        },
        {
          "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"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pymupdf",
            "purl": "pkg:deb/ubuntu/pymupdf?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.16.11-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-82035.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-fitz",
                "binary_version": "1.16.11-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pymupdf",
            "purl": "pkg:deb/ubuntu/pymupdf?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.17.4+ds1-2build2",
            "1.17.4+ds1-2build3",
            "1.19.2+ds1-1ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-82035.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-fitz",
                "binary_version": "1.19.2+ds1-1ubuntu1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pymupdf",
            "purl": "pkg:deb/ubuntu/pymupdf?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.22.5+ds1-1",
            "1.22.5+ds1-1build1",
            "1.22.5+ds1-1build2",
            "1.23.7+ds1-1ubuntu1",
            "1.23.7+ds1-1ubuntu2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-82035.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-fitz",
                "binary_version": "1.23.7+ds1-1ubuntu2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pymupdf",
            "purl": "pkg:deb/ubuntu/pymupdf?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.26.7+ds1-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-82035.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-fitz",
                "binary_version": "1.26.7+ds1-1build1"
              },
              {
                "binary_name": "python3-pymupdf",
                "binary_version": "1.26.7+ds1-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pymupdf",
            "purl": "pkg:deb/ubuntu/pymupdf?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.25.4+ds1-4",
            "1.26.7+ds1-1",
            "1.26.7+ds1-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-82035.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-fitz",
                "binary_version": "1.26.7+ds1-1build1"
              },
              {
                "binary_name": "python3-pymupdf",
                "binary_version": "1.26.7+ds1-1build1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:01:11.121175323Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-82035"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-82035",
        "https://www.cve.org/CVERecord?id=CVE-2026-82035"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-82035",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 361161,
  "published_at": "2026-09-14T19:17:00+00:00"
}