CVE-2023-23939
3.9 · LOWOverview
CVE-2023-23939 is a low-severity vulnerability affecting microsoft azure_setup_kubectl. It was published on March 6, 2023 and has a CVSS 3.1 base score of 3.9 (LOW).
This vulnerability has a CVSS 3.1 base score of 3.9, rated LOW. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.
Technical Description
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.
Remediation
Check the references section for vendor advisories and patches from microsoft. Update azure_setup_kubectl to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.
Affected Products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| microsoft | azure_setup_kubectl | >= 0, < 3.0 | Affected |
References
Frequently Asked Questions
What is CVE-2023-23939?
CVE-2023-23939 is a low-severity vulnerability affecting microsoft azure_setup_kubectl. It was published on March 6, 2023 and has a CVSS 3.1 base score of 3.9 (LOW).
How severe is CVE-2023-23939?
This vulnerability has a CVSS 3.1 base score of 3.9, rated LOW. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.
How do I fix or remediate CVE-2023-23939?
Check the references section for vendor advisories and patches from microsoft. Update azure_setup_kubectl to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.
How can CyberStrike help with CVE-2023-23939?
CyberStrike's AI-powered security agents can automatically detect CVE-2023-23939 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.
How CyberStrike Helps
AI agents map your attack surface to find vulnerabilities like this one.
Automated penetration testing that runs continuously, not just quarterly.
AI-driven PR review catches vulnerable dependencies before they ship.
Browser-based exploitation validates findings with real proof-of-concept.
Related LOW CVEs from 2023
View all →A CWE-668: Exposure of Resource to Wrong Sphere vulnerability exists that could cause all remote dom
All versions of Landis+Gyr E850 (ZMQ200) are vulnerable to CWE-784: Reliance on Cookies Without Vali
Dell PowerEdge BIOS and Dell Precision BIOS contain an improper input validation vulnerability. A
A vulnerability was found in Deye/Revolt/Bosswerk Inverter MW3_15U_5406_1.47/MW3_15U_5406_1.471. It
IBM Robotic Process Automation 21.0.1 through 21.0.7 and 23.0.0 through 23.0.1 could allow a user wi
This vulnerability allows local attackers to execute arbitrary code on affected installations of Sam
Kiwi TCMS is an open source test management system. In versions of Kiwi TCMS prior to 12.2, users we
Wasmtime is a standalone runtime for WebAssembly. Prior to versions 6.0.2, 7.0.1, and 8.0.1, Wasmtim
Insufficient input validation in the SMU may allow an attacker to corrupt SMU SRAM potentially leadi
Out-of-bounds write for some Intel(R) Trace Analyzer and Collector software before version 2021.8.0
Libarchive through 3.6.2 can cause directories to have world-writable permissions. The umask() call
A vulnerability has been identified in SIMATIC NET PC Software V14 (All versions), SIMATIC NET PC So