CVE & CISA-KEV Catalog

CVE-2023-23939

LOW
3.9
CVSS v3
NVD

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.

How to fix

Remediation Available
azure setup kubectlNVD
Affected:< 3.0Fixed in:3.0CVE-2023-23939derived from NVD

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

Attack VectorLocal
Attack ComplexityHigh
Privileges RequiredHigh
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityLow
IntegrityLow
AvailabilityLow

CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L

Exploit Intelligence

0.36%probability of exploitation in 30 days
28thpercentile

Low risk: more likely to be exploited than 28% of all known CVEs.

References

Vendor Advisory1

Related Vulnerabilities

Other CWE-732 (Incorrect Permission Assignment for Critical Resource) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2011-3923Critical9.889%-Fix
CVE-2018-15379Critical9.886%--
CVE-2018-1000207High7.264%--
CVE-2023-32986High8.863%--
CVE-2021-44521Critical9.155%-Fix
CVE-2018-13374Medium4.338%KEV + RansomFix
Embed a live status badge for CVE-2023-23939
CVE-2023-23939 severity badge

Markdown

[![CVE-2023-23939](https://tridentstack.com/cve/badge/CVE-2023-23939.svg)](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 free

This 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.