Intel

AIKIDO-2026-126156

cuga is vulnerable to Path Traversal

Path TraversalGHSA-q5m4-94jr-jwrq Published Today

65

Medium Risk

This Affects:

PYTHONcuga
0.0.1 - 0.3.1
Fixed in 0.3.2
Are you affected? Scan for Free

TL;DR

The registry server's POST /functions/call endpoint accepts an unauthenticated, caller-controlled trajectory_path query parameter and writes request-body content to it, guarded only by a parent-directory existence check. Requests also force-enable the trajectory tracker, bypassing its off-switch, so a traversal or absolute path lets a caller overwrite any file the server process can write. Exposure widens because the registry binds to 0.0.0.0 by default, making the endpoint reachable from untrusted networks. The fix validates the resolved path with assert_resolved_path_under against the tracker base directory and drops writes that fall outside it.

Who does this affect?

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

Background info

cuga is vulnerable to Path Traversal in versions 0.0.1 - 0.3.1.

How to fix this

Upgrade the cuga library to the patch version.