Intel

AIKIDO-2026-10971

prefect is vulnerable to Path Traversal

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

65

Medium Risk

This Affects:

PYTHONprefect
3.0.0 - 3.6.28
Fixed in 3.6.29
Are you affected? Scan for Free

TL;DR

Prefect's LocalFileSystem block is meant to confine reads and writes to a configured basepath, but _resolve_path only enforced that boundary when callers passed an internal validate flag that most public methods left disabled. Paths such as absolute locations outside the sandbox or parent-relative segments like ../escape could therefore be used for read_path, write_path, and directory copy operations. An actor who can supply filesystem paths to those APIs may read or write files outside the intended directory. The patch always resolves paths and rejects any resolved location outside basepath for every public method.

Who does this affect?

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

Background info

prefect is vulnerable to Path Traversal in versions 3.0.0 - 3.6.28.

How to fix this

Upgrade the prefect library to the patch version.