{"answers":{"affected":"1 open source package ship an affected version, including Azure/setup-kubectl. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-23939 in the wild and no public exploit code.","fix":"Upgrade Azure/setup-kubectl to 3 or later.","what":"CVE-2023-23939 is a low-severity vulnerability in Azure setup-kubectl, published on 6 Mar 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-23939 and fix it if it is affected.\n\nWhat it is: CVE-2023-23939 is a low-severity vulnerability in Azure setup-kubectl, published on 6 Mar 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-23939 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- Azure/setup-kubectl (GitHub Actions): affected all versions; fixed in 3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-23939/ (Markdown: https://insights.sbomify.com/CVE-2023-23939/index.md)","id":"CVE-2023-23939","markdown":"https://insights.sbomify.com/CVE-2023-23939/index.md","name":"CVE-2023-23939","record":{"aliases":["GHSA-p756-rfxh-x63h"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["privilege_escalation","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"GitHub Actions","requires_auth":"high_privilege","summary":"Insecure file permissions in Azure setup-kubectl allow local attackers to replace the binary, leading to privilege escalation on the runner.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"azure_setup_kubectl","vendor":"microsoft"}],"cvss":{"score":3.9,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource"}],"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.","ecosystems":["GitHub Actions"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Azure/setup-kubectl: Escalation of privilege vulnerability for v3 and lower","id":"CVE-2023-23939","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"GitHub Actions","product":null,"products":[],"type":"privilege_escalation","year":"2023"},"n_packages":1,"n_references":2,"next":{"headline":"OpenZeppelin Contracts for Cairo is vulnerable to signature validation bypass","id":"CVE-2023-23940"},"packages":[{"ecosystem":"GitHub Actions","fixed":["3"],"introduced":["0"],"last_affected":[],"package":"Azure/setup-kubectl","purl":null,"source":"GHSA-p756-rfxh-x63h"}],"prev":{"headline":"Cross-site Scripting (XSS) through the name of a color of select box values in tuleap","id":"CVE-2023-23938"},"products":["setup-kubectl"],"published":"2023-03-06","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-25","vendors":["Azure"]},"summary":"Insecure file permissions in Azure setup-kubectl allow local attackers to replace the binary, leading to privilege escalation on the runner.","url":"https://insights.sbomify.com/CVE-2023-23939/"}