CVE-2023-23939
LOWDescription
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.
How to fix
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L
Exploit Intelligence
Low risk: more likely to be exploited than 28% of all known CVEs.
References
Related Vulnerabilities
Other CWE-732 (Incorrect Permission Assignment for Critical Resource) vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2011-3923 | Critical | 9.8 | 89% | - | Fix |
| CVE-2018-15379 | Critical | 9.8 | 86% | - | - |
| CVE-2018-1000207 | High | 7.2 | 64% | - | - |
| CVE-2023-32986 | High | 8.8 | 63% | - | - |
| CVE-2021-44521 | Critical | 9.1 | 55% | - | Fix |
| CVE-2018-13374 | Medium | 4.3 | 38% | KEV + Ransom | Fix |
Embed a live status badge for CVE-2023-23939
Markdown
[](https://tridentstack.com/cve/CVE-2023-23939)HTML
<a href="https://tridentstack.com/cve/CVE-2023-23939"><img src="https://tridentstack.com/cve/badge/CVE-2023-23939.svg" alt="CVE-2023-23939"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
Start freeThis product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.