Intel

AIKIDO-2026-173269

prefect is vulnerable to Path Traversal

Path Traversal Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 4 days ago

59

Medium Risk

This Affects:

PYTHONprefect
2.0.0 - 3.7.8
Fixed in 3.8.0
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.

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.

Background info

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

How to fix this

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