CVE-2023-23939: low-severity vulnerability in Azure setup-kubectl
Azure/setup-kubectl: Escalation of privilege vulnerability for v3 and lower
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
No sign of exploitation. No public exploitation artifact known so far.
The Azure/setup-kubectl GitHub Action (versions before 3) sets the Kubectl binary with overly permissive file permissions (777), allowing any user on the same runner to replace it with a malicious version and gain elevated privileges. This matters because it could let an attacker trick the system into running commands as root.
CWE-732 vulnerability where fs.chmodSync(kubectlPath, 777) creates a world-writable binary, enabling local privilege escalation on shared GitHub Actions runners. Exploitation requires local access to the runner environment; impact is arbitrary command execution with the privileges of the kubectl user (typically root). Fixed in v3+ by using 775 permissions instead.