Akamai CLI reads package command metadata from cli.json during package installation. The commands[].name value is treated as a command identifier, but the same value is later reused as a filesystem output path component for installed command binaries. Because command names are accepted without rejecting path separators or .. traversal segments, a malicious package can cause Akamai CLI to write outside the intended package install directory. This was validated through the real akamai install flow, not only by calling helper functions directly. In the PoC, a package overwrote a pre-existing executable in a temporary user-controlled PATH directory, and the overwritten executable persisted after uninstall. The PoC uses only a temporary HOME and temporary paths under /tmp.
Akamai CLI
Repository: https://github.com/akamai/cli