Intel

AIKIDO-2025-10959

PyMuPDF is vulnerable to Path Traversal

CVE-2026-3029Published Dec 16, 2025
December 16, 2025

65

CVE Score

Medium

Path Traversal

Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Path Traversal because the embedded_get functionality does not properly sanitize the user-controlled path parameter. This allows an attacker to craft a path containing directory traversal sequences, potentially causing files to be written outside the intended working directory or to overwrite existing files. The issue is mitigated by introducing stricter path validation: by default, the command now refuses to write to an existing file or to any location outside the current directory. Writing outside these constraints is only possible when explicitly allowed via the -output option or the newly introduced -unsafe flag, making the security impact opt-in and explicit.

How do I fix this?

Upgrade the PyMuPDF library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

1.26.5 - 1.26.6

Fixed in 1.26.7

Background info

PyMuPDF is vulnerable to Path Traversal in versions 1.26.5 - 1.26.6.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea