Command Injection Affecting github.com/fluxcd/kustomize-controller package, versions <0.15.0


0.0
high

Snyk CVSS

    Exploit Maturity Proof of concept
    Attack Complexity Low
    Confidentiality High
    Integrity High
    Availability High
Expand this section
NVD
8.8 high

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?

Upgrade github.com/fluxcd/kustomize-controller to version 0.15.0 or higher.

Overview

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 Kubernetes Secrets, 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.

References