Description
Akamai CLI before 2.0.6 contains a path traversal vulnerability that allows malicious packages to write files outside the install directory via unvalidated commands[].name values in cli.json. Attackers who convince victims to install or update a package can use '..' segments to overwrite executables on the user's PATH, persisting after uninstall.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Akamai | Akamai CLI | < 2.0.6 | 2.0.6 |
References
- https://github.com/akamai/cli/pull/227 patch issue-tracking
- https://github.com/akamai/cli/commit/03cf2e4d7db3680ee8230aa399697d74b0ec5244 patch
- Akamai CLI v2.0.6 Release Notes release-notes
- https://github.com/akamai/cli/blob/cae602db7ed79a173763da03a31614e8b60275ca/pkg/commands/subcommands.go#L155 technical-description
- https://github.com/akamai/cli/blob/cae602db7ed79a173763da03a31614e8b60275ca/pkg/packages/golang.go#L75-L78 technical-description
- https://gist.github.com/thesmartshadow/39f1c49ff74099b675e2576171390003 exploit technical-description
- VulnCheck Advisory: Akamai CLI before 2.0.6 Path Traversal via cli.json Command Names third-party-advisory