Security mailing lists by PureSourceCode

CVE-2023-23939

HIGH 7.0CVSS 3.1

Azure/setup-kubectl: Escalation of privilege vulnerability for v3 and lower

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.

Published
6 Mar 2023
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-732
Also known as
GHSA-p756-rfxh-x63h
Sources
NVDJSONOSV GHSA-p756-rfxh-x63hJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.0 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD security-advisories@github.com (Secondary) CVSS 3.1 LOW 3.9 CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L
OSV GitHub CVSS 3.1 LOW 3.0 CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD microsoft azure_setup_kubectl
cpe:2.3:a:microsoft:azure_setup_kubectl:*:*:*:*:*:*:*:*
< 3.0 3.0
OSV GitHub Actions Azure/setup-kubectl < 3 3

References

History

  • 25 Nov 2026 20:35 UTC · NVD: first stored (published 6 Mar 2023)
  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 7 Mar 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.