HIGH🇬🇧 English

CVE-2021-41254

CVSS 8.8v3.1pub. 2021-11-12upd. 2024-11-21

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.

oryginał EN
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Fluxcd Kustomize Controller

    APP
    Fluxcd
    < 0.15.0
🔵
ZWERYFIKUJ U PRODUCENTA
Brak jednoznacznych danych o patchu. Sprawdź referencje od producenta.
Tagi
ContainerCommand Injection
CWE
Referencje

Powiązane podatności

CVE-2022-24817CRITICAL9.9ten sam produkt

Flux2 is an open and extensible continuous delivery solution for Kubernetes. Flux2 versions between 0.1.0 and ...

CVE-2022-24877CRITICAL9.9ten sam produkt

Flux is an open and extensible continuous delivery solution for Kubernetes. Path Traversal in the kustomize-co...

CVE-2022-24878HIGH7.7ten sam produkt

Flux is an open and extensible continuous delivery solution for Kubernetes. Path Traversal in the kustomize-co...

CVE-2022-39272MEDIUM5.0ten sam produkt

Flux is an open and extensible continuous delivery solution for Kubernetes. Versions prior to 0.35.0 are subje...

CVE-2022-36049HIGH7.7ten sam vendor

Flux2 is a tool for keeping Kubernetes clusters in sync with sources of configuration, and Flux's helm-control...