CVE-2021-41254

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-41254
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41254.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-41254
Aliases
Related
Published
2021-11-12T18:15:07Z
Modified
2025-02-19T03:22:51.530150Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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. This vulnerability was fixed in kustomize-controller v0.15.0 (included in flux2 v0.18.0) released on 2021-10-08. Starting with v0.15, the kustomize-controller no longer executes shell commands on the container OS and the kubectl binary has been removed from the container image. To prevent the creation of Kubernetes Service Accounts with secrets in namespaces owned by tenants, a Kubernetes validation webhook such as Gatekeeper OPA or Kyverno can be used.

References

Affected packages

Git / github.com/fluxcd/flux2

Affected ranges

Type
GIT
Repo
https://github.com/fluxcd/flux2
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Type
GIT
Repo
https://github.com/fluxcd/kustomize-controller
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

api/v0.*

api/v0.0.10
api/v0.0.11
api/v0.0.12
api/v0.0.13
api/v0.0.8
api/v0.0.9
api/v0.1.0
api/v0.1.1
api/v0.1.2
api/v0.10.0
api/v0.11.0
api/v0.11.1
api/v0.12.0
api/v0.12.1
api/v0.12.2
api/v0.13.0
api/v0.13.1
api/v0.13.2
api/v0.13.3
api/v0.14.0
api/v0.14.1
api/v0.15.0
api/v0.2.0
api/v0.2.1
api/v0.2.2
api/v0.3.0
api/v0.4.0
api/v0.5.0
api/v0.5.1
api/v0.5.2
api/v0.5.3
api/v0.6.0
api/v0.6.1
api/v0.6.2
api/v0.6.3
api/v0.7.0
api/v0.7.1
api/v0.7.2
api/v0.7.3
api/v0.7.4
api/v0.8.0
api/v0.8.1
api/v0.9.0
api/v0.9.1
api/v0.9.2
api/v0.9.3

v0.*

v0.0.1
v0.0.1-alpha.1
v0.0.1-alpha.2
v0.0.1-alpha.3
v0.0.1-alpha.4
v0.0.1-alpha.5
v0.0.1-alpha.6
v0.0.1-alpha.7
v0.0.1-alpha.8
v0.0.1-alpha.9
v0.0.1-beta.1
v0.0.1-beta.2
v0.0.1-beta.3
v0.0.1-beta.4
v0.0.10
v0.0.11
v0.0.12
v0.0.13
v0.0.14
v0.0.15
v0.0.16
v0.0.17
v0.0.18
v0.0.19
v0.0.2
v0.0.20
v0.0.21
v0.0.22
v0.0.23
v0.0.24
v0.0.25
v0.0.26
v0.0.27
v0.0.28
v0.0.3
v0.0.4
v0.0.5
v0.0.6
v0.0.7
v0.0.8
v0.0.9
v0.1.0
v0.1.1
v0.1.2
v0.1.3
v0.1.4
v0.1.5
v0.1.6
v0.1.7
v0.1.8
v0.10.0
v0.11.0
v0.11.1
v0.12.0
v0.12.1
v0.12.2
v0.12.3
v0.13.0
v0.13.1
v0.13.2
v0.13.3
v0.13.4
v0.14.0
v0.14.1
v0.14.2
v0.2.0
v0.2.1
v0.2.2
v0.2.3
v0.2.4
v0.2.5
v0.2.6
v0.3.0
v0.4.0
v0.4.1
v0.4.2
v0.4.3
v0.5.0
v0.5.1
v0.5.2
v0.5.3
v0.5.4
v0.5.5
v0.5.6
v0.5.7
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.2
v0.6.3
v0.7.0
v0.7.1
v0.7.2
v0.7.3
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.8.0
v0.8.1
v0.8.2
v0.9.0
v0.9.1
v0.9.2
v0.9.3