Caught in the Octopus Trap: Unauthenticated RCE in Argo CD with CodeQL
The repo-server component of Argo CD exposes an unauthenticated gRPC endpoint that accepts a manifest generation request, and because the Kustomize build options are attacker-controlled, a remote attacker can run arbitrary commands on the server. This could lead to full compromise of the underlying Kubernetes cluster.
Published on synacktiv.com
Rédigé par Hugo Vincent - 01/07/2026 - dans Pentest - Téléchargement
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the repo-server's gRPC service lacks authentication and trusts caller-supplied KustomizeOptions, so attacker-controlled build options reach an exec call.
Impact
An unauthenticated attacker could execute arbitrary commands on the repo-server and potentially compromise the whole Kubernetes cluster.
What the attacker needed
Network access to repo-server gRPC port; attacker-controlled Git repository; KustomizeOptions set by an administrator
How it was found
- Send an unauthenticated gRPC request to the repo-server's GenerateManifest endpoint.
- Supply a ManifestRequest pointing at an attacker-controlled Git repository.
- Include KustomizeOptions with build options that enable Helm and set a custom helm command.
- Place a kustomization file and a script in the repository so the script runs during the build.
- Exfiltrate an environment variable such as the Redis password to a remote host.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Argo CD is a tool that deploys applications into Kubernetes clusters. Its repo-server fetches code from Git repositories and builds configuration files, and it listens on a network port that anyone can reach without logging in. Because the build settings can be supplied by the caller, an outsider can make the server run their own commands.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.