{"id":5802295,"name":"Azure/setup-kubectl","ecosystem":"actions","description":"Install a specific version of kubectl binary. Acceptable values are latest or any semantic version string like 1.15.0","homepage":"","licenses":"mit","normalized_licenses":["MIT"],"repository_url":"https://github.com/Azure/setup-kubectl","keywords_array":["action","actions","azure","github-action","github-actions","k8s","kubectl","kubernetes","setup"],"namespace":"Azure","versions_count":12,"first_release_published_at":"2020-10-29T05:18:20.000Z","latest_release_published_at":"2025-06-20T22:46:36.000Z","latest_release_number":"v4.0.1","last_synced_at":"2026-04-11T14:02:16.724Z","created_at":"2023-01-04T13:40:01.446Z","updated_at":"2026-04-11T14:02:16.725Z","registry_url":"https://github.com/Azure/setup-kubectl","install_command":null,"documentation_url":null,"metadata":{"name":"Kubectl tool installer","description":"Install a specific version of kubectl binary. Acceptable values are latest or any semantic version string like 1.15.0","inputs":{"version":{"description":"Version of kubectl","required":true,"default":"latest"}},"outputs":{"kubectl-path":{"description":"Path to the cached kubectl binary"}},"branding":{"color":"blue"},"runs":{"using":"node20","main":"lib/index.js"},"default_branch":"main","path":null},"repo_metadata":{"uuid":"206293378","full_name":"Azure/setup-kubectl","owner":"Azure","description":"GitHub Action for installing Kubectl","archived":false,"fork":false,"pushed_at":"2023-07-11T01:23:13.000Z","size":29992,"stargazers_count":91,"open_issues_count":3,"forks_count":39,"subscribers_count":16,"default_branch":"main","last_synced_at":"2023-07-13T19:44:59.536Z","etag":null,"topics":["action","actions","azure","github-action","github-actions","k8s","kubectl","kubernetes","setup"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Azure.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null}},"created_at":"2019-09-04T10:28:20.000Z","updated_at":"2023-07-12T20:36:44.000Z","dependencies_parsed_at":"2023-02-08T13:30:29.673Z","dependency_job_id":null,"html_url":"https://github.com/Azure/setup-kubectl","commit_stats":{"total_commits":51,"total_committers":20,"mean_commits":2.55,"dds":0.7647058823529411,"last_synced_commit":"dd44a92c26432fb9f47ec9c4a94fa40059fe2e32"},"previous_names":[],"tags_count":7,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Fsetup-kubectl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Fsetup-kubectl/tags","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Fsetup-kubectl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Azure","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":145709600,"owners_count":6278964,"icon_url":"https://github.com/github.png","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"},"owner_record":{"login":"Azure","name":"Microsoft Azure","uuid":"6844498","kind":"organization","description":"APIs, SDKs and open source projects from Microsoft Azure","email":"opensource@microsoft.com","website":"https://docs.microsoft.com/en-us/azure/","location":"Redmond, WA \u0026 the cloud ☁️","twitter":"Azure","company":null,"icon_url":"https://avatars.githubusercontent.com/u/6844498?v=4","repositories_count":1939,"last_synced_at":"2023-04-09T04:55:33.730Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/Azure","created_at":"2022-11-02T16:20:18.910Z","updated_at":"2023-04-09T04:55:33.856Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Azure","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Azure/repositories"},"tags":[{"name":"v3.2","sha":"901a10e89ea615cf61f57ac05cecdf23e7de06d8","kind":"commit","published_at":"2023-01-09T18:58:02.000Z","download_url":"https://codeload.github.com/Azure/setup-kubectl/tar.gz/v3.2","html_url":"https://github.com/Azure/setup-kubectl/releases/tag/v3.2","dependencies_parsed_at":"2023-06-02T00:06:39.822Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Fsetup-kubectl/tags/v3.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Fsetup-kubectl/tags/v3.2/manifests"},{"name":"v3.1","sha":"e1be5e75ed9741a7c467f4832ecb259a83174311","kind":"commit","published_at":"2022-12-05T18:21:32.000Z","download_url":"https://codeload.github.com/Azure/setup-kubectl/tar.gz/v3.1","html_url":"https://github.com/Azure/setup-kubectl/releases/tag/v3.1","dependencies_parsed_at":"2023-06-01T10:21:33.119Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Fsetup-kubectl/tags/v3.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Fsetup-kubectl/tags/v3.1/manifests"},{"name":"v3.0","sha":"7f7e5ba5ea3e491b92e6e8e5819963f8f3a1f076","kind":"commit","published_at":"2022-06-21T16:18:30.000Z","download_url":"https://codeload.github.com/Azure/setup-kubectl/tar.gz/v3.0","html_url":"https://github.com/Azure/setup-kubectl/releases/tag/v3.0","dependencies_parsed_at":"2023-05-30T21:26:17.387Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Fsetup-kubectl/tags/v3.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Fsetup-kubectl/tags/v3.0/manifests"},{"name":"v3","sha":"7f7e5ba5ea3e491b92e6e8e5819963f8f3a1f076","kind":"commit","published_at":"2022-06-21T16:18:30.000Z","download_url":"https://codeload.github.com/Azure/setup-kubectl/tar.gz/v3","html_url":"https://github.com/Azure/setup-kubectl/releases/tag/v3","dependencies_parsed_at":"2023-05-30T21:26:18.638Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Fsetup-kubectl/tags/v3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Fsetup-kubectl/tags/v3/manifests"},{"name":"v2.1","sha":"6025c840858f1afa584a5190a4426c338f59e503","kind":"commit","published_at":"2022-03-03T19:53:59.000Z","download_url":"https://codeload.github.com/Azure/setup-kubectl/tar.gz/v2.1","html_url":"https://github.com/Azure/setup-kubectl/releases/tag/v2.1","dependencies_parsed_at":"2023-05-30T21:26:19.740Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Fsetup-kubectl/tags/v2.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Fsetup-kubectl/tags/v2.1/manifests"},{"name":"v2.0","sha":"7ad2aa66bb42774adf65a0c580fbc96b2dadd747","kind":"commit","published_at":"2022-01-05T16:26:06.000Z","download_url":"https://codeload.github.com/Azure/setup-kubectl/tar.gz/v2.0","html_url":"https://github.com/Azure/setup-kubectl/releases/tag/v2.0","dependencies_parsed_at":"2023-05-30T21:26:20.911Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Fsetup-kubectl/tags/v2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Fsetup-kubectl/tags/v2.0/manifests"},{"name":"v1","sha":"a625ca209b0faaa8871dac8fb5f50ee4b4d22622","kind":"tag","published_at":"2020-10-29T05:18:20.000Z","download_url":"https://codeload.github.com/Azure/setup-kubectl/tar.gz/v1","html_url":"https://github.com/Azure/setup-kubectl/releases/tag/v1","dependencies_parsed_at":"2023-05-30T21:26:21.347Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Fsetup-kubectl/tags/v1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Fsetup-kubectl/tags/v1/manifests"}]},"repo_metadata_updated_at":"2023-07-14T09:13:09.602Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":43,"rankings":{"downloads":null,"dependent_repos_count":6.788147678656315,"dependent_packages_count":0.0,"stargazers_count":2.2373633338615115,"forks_count":1.6700998257011566,"docker_downloads_count":null,"average":2.6739027095547456},"purl":"pkg:githubactions/Azure/setup-kubectl","advisories":[{"uuid":"GSA_kwCzR0hTQS1wNzU2LXJmeGgteDYzaM4AAx-a","url":"https://github.com/advisories/GHSA-p756-rfxh-x63h","title":"Azure/setup-kubectl: Escalation of privilege vulnerability for v3 and lower","description":"### Impact\n\nThis vulnerability only impacts versions `v2` and lower. 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.\n\nNo impacted customers have been reported.\n\n### Patches\n\nThis has been fixed and released in all versions `v3` and later. 755 permissions are used instead.\n\n### Workarounds\n\nIf users absolutely cannot upgrade to `v3` or higher than they should be extra diligent of the other GitHub actions they are using in a workflow and ensure that their GitHub actions runner is secure.\n","origin":"UNSPECIFIED","severity":"LOW","published_at":"2023-03-07T20:07:27.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":0.0,"cvss_vector":null,"references":["https://github.com/Azure/setup-kubectl/security/advisories/GHSA-p756-rfxh-x63h","https://nvd.nist.gov/vuln/detail/CVE-2023-23939","https://github.com/Azure/setup-kubectl/commit/d449d75495d2b9d1463555bb00ca3dca77a42ab6","https://github.com/advisories/GHSA-p756-rfxh-x63h"],"source_kind":"github","identifiers":["GHSA-p756-rfxh-x63h","CVE-2023-23939"],"repository_url":"https://github.com/Azure/setup-kubectl","blast_radius":1.0,"created_at":"2023-03-07T21:03:12.272Z","updated_at":"2025-09-15T12:46:52.591Z","epss_percentage":0.00333,"epss_percentile":0.55497,"packages":[{"ecosystem":"actions","package_name":"Azure/setup-kubectl","versions":[{"first_patched_version":"3","vulnerable_version_range":"\u003c 3"}],"purl":null}]}],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/Azure/setup-kubectl","docker_dependents_count":1,"docker_downloads_count":90,"usage_url":"https://repos.ecosyste.ms/usage/actions/Azure/setup-kubectl","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/Azure/setup-kubectl/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2023-08-09T09:08:42.395Z","issues_count":16,"pull_requests_count":68,"avg_time_to_close_issue":2533963.9285714286,"avg_time_to_close_pull_request":1752246.1384615384,"issues_closed_count":14,"pull_requests_closed_count":65,"pull_request_authors_count":20,"issue_authors_count":16,"avg_comments_per_issue":2.5625,"avg_comments_per_pull_request":0.5735294117647058,"merged_pull_requests_count":46,"bot_issues_count":0,"bot_pull_requests_count":24,"past_year_issues_count":6,"past_year_pull_requests_count":16,"past_year_avg_time_to_close_issue":1405714.75,"past_year_avg_time_to_close_pull_request":648984.2307692308,"past_year_issues_closed_count":4,"past_year_pull_requests_closed_count":13,"past_year_pull_request_authors_count":7,"past_year_issue_authors_count":6,"past_year_avg_comments_per_issue":2.5,"past_year_avg_comments_per_pull_request":0.8125,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":9,"past_year_merged_pull_requests_count":11},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/Azure%2Fsetup-kubectl/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/Azure%2Fsetup-kubectl/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/Azure%2Fsetup-kubectl/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/Azure%2Fsetup-kubectl/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/Azure%2Fsetup-kubectl/codemeta","maintainers":[]}