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


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
1.66% (88th percentile)

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 Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMFLUXCDKUSTOMIZECONTROLLER-1920906
  • published14 Nov 2021
  • disclosed14 Nov 2021
  • creditAdamKorcz, DavidKorczynski

Introduced: 14 Nov 2021

CVE-2021-41254  (opens in a new tab)
CWE-78  (opens in a new tab)

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

CVSS Base Scores

version 3.1