Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2023-23939

3.9 · LOW
Published Mar 6, 2023 microsoft CWE-732 EPSS 0.36% (29th pctl)

Overview

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

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.