Intel

AIKIDO-2026-173269

prefect is vulnerable to Path Traversal

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 30, 2026
July 30, 2026

59

CVE Score

Medium

Path Traversal

Are you affected? Scan for Free

TL;DR

RemoteFileSystem blocks resolve user-supplied paths through _resolve_path before reading from or writing to the configured fsspec backend. The method only enforces base-path containment when a path carries a matching network location and never rejects dot-segment (..) traversal, backslash separators, or percent-encoded variants, so a resolved path can escape the configured basepath. An actor who can influence the paths passed to filesystem operations can read or write objects outside the intended storage prefix. The fix rebuilds absolute URLs from the configured scheme and netloc, rejects traversal sequences and sibling-prefix spoofs, and enforces strict containment for every resolved path.

How do I fix this?

Upgrade the prefect and/or the prefect-client library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and use a RemoteFileSystem block with paths derived from untrusted input.

Package

Versions

2.0.0 - 3.7.8

Fixed in 3.8.0

Background info

prefect is vulnerable to Path Traversal in versions 2.0.0 - 3.7.8.

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