{"id":"CVE-2023-23939","published":"2023-03-06T18:19:05Z","modified":"2025-02-25T15:00:56Z","title":"Azure/setup-kubectl: Escalation of privilege vulnerability for v3 and lower","vendor":"Azure","product":"setup-kubectl","tier":"tail","description":{"text":"Azure/setup-kubectl is a GitHub Action for installing Kubectl. This vulnerability only impacts versions before version 3. An insecure temporary creation of a file allows other actors on the Actions runner to replace the Kubectl binary created by this action because it is world writable. This Kubectl tool installer runs `fs.chmodSync(kubectlPath, 777)` to set permissions on the Kubectl binary, however, this allows any local user to replace the Kubectl binary. This allows privilege escalation to the user that can also run kubectl, most likely root. This attack is only possible if an attacker somehow breached the GitHub actions runner or if a user is utilizing an Action that maliciously executes this attack. This has been fixed and released in all versions `v3` and later. 775 permissions are used instead. Users are advised to upgrade. There are no known workarounds for this issue.\n","provenance":"source","from":"CVE.org"},"cvss":{"score":3.9,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00362,"percentile":0.30758,"provenance":"source"},"cwes":[{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource"}],"references":[{"url":"https://github.com/Azure/setup-kubectl/security/advisories/GHSA-p756-rfxh-x63h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Azure/setup-kubectl/commit/d449d75495d2b9d1463555bb00ca3dca77a42ab6","tags":["x_refsource_MISC"]}],"priority":{"score":8.9,"factors":[{"name":"EPSS percentile","points":6.15},{"name":"CVSS severity","points":2.73}]},"vendorSlug":"azure","affectedVersions":[{"vendor":"Azure","product":"setup-kubectl","versions":["< 3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-02-25T14:30:16.170469Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"GitHub Actions","package":"Azure/setup-kubectl","vulnerableRanges":["<3"],"patched":["3"],"from":["GHSA-p756-rfxh-x63h"],"provenance":"source"}],"summary":{"text":"The setup-kubectl GitHub Action from Azure, which installs the Kubectl tool, contains a flaw in versions before 3 where it sets world-writable permissions on the Kubectl binary, letting any local user on the Actions runner replace it and escalate privileges to whichever user runs kubectl. Exploitation requires an attacker who has already breached the GitHub Actions runner or a user running an Action that maliciously performs the attack, with local access and high-privilege conditions needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:02Z"},"euvd":{"id":"EUVD-2023-1065","exploited":false,"provenance":"source"}}