CVE-2021-41254

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in go/github.com/fluxcd/kustomize-controller

Identifiers

CVE-2021-41254, GHSA-35rf-v2jv-gfg7

Package Slug

go/github.com/fluxcd/kustomize-controller

Vulnerability

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Description

kustomize-controller is a Kubernetes operator, specialized in running continuous delivery pipelines for infrastructure and workloads defined with Kubernetes manifests and assembled with Kustomize. 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. In affected versions multitenant environments where non-admin users have permissions to create Flux Kustomization objects are affected by this issue.

Affected Versions

All versions before 0.15.0

Solution

Upgrade to version 0.15.0 or above.

Last Modified

2021-11-18

source