Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.Test your applications
- Snyk ID SNYK-GOLANG-GITHUBCOMFLUXCDKUSTOMIZECONTROLLER-1920906
- published 14 Nov 2021
- disclosed 14 Nov 2021
- credit AdamKorcz, DavidKorczynski
How to fix?
github.com/fluxcd/kustomize-controller to version 0.15.0 or higher.
github.com/fluxcd/kustomize-controller is a Kubernetes operator, specialized in running continuous delivery pipelines for infrastructure and workloads defined with Kubernetes manifests and assembled with Kustomize.
Affected versions of this package are vulnerable to Command Injection. Users that can create
Service Accounts and
Flux Kustomization objects, could execute commands inside the
kustomize-controller container by embedding a shell script in a Kubernetes Secret. This can be used to run
kubectl commands under the
Service Account of
kustomize-controller, thus allowing an authenticated Kubernetes user to gain cluster admin privileges.