cuga is vulnerable to Path Traversal
65
Medium Risk
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.
You are affected if you are using a version within the vulnerable range.
cuga is vulnerable to Path Traversal in versions 0.0.1 - 0.3.1.
Upgrade the cuga library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant