Read the docs
TI-2021-18089 Aliases CVE-2021-41254GHSA-35rf-v2jv-gfg7

Privilege escalation to cluster admin on multi-tenant environments

Priority MEDIUM 42CWE-78Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-78.

Summary

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.

Why it matters now

EPSS 0.01824 78th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed kustomize-controller (fluxcd): 0.15.0github.com/fluxcd/kustomize-controller (Go): 0.15.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
fluxcdkustomize-controllerbefore 0.15.00.15.0Patch availableCNA
—github.com/fluxcd/kustomize-controller (Go)before 0.15.00.15.0Patch availableGHSA-35rf-v2jv-gfg7
  • kustomize-controller Vendorfluxcd Affected before 0.15.0 Fixed in 0.15.0 Patch available CNA
  • github.com/fluxcd/kustomize-controller (Go) Vendor— Affected before 0.15.0 Fixed in 0.15.0 Patch available GHSA-35rf-v2jv-gfg7

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:fluxcd:kustomize-controller:*:*:*:*:*:*:*:*before 0.15.0Vulnerablefluxcd
  • cpe:2.3:a:fluxcd:kustomize-controller:*:*:*:*:*:*:*:* Versions before 0.15.0 Vulnerable ·fluxcd

Remediation

  • Fix · CNA kustomize-controller (fluxcd) Fixed in 0.15.0
  • Fix · GHSA-35rf-v2jv-gfg7 github.com/fluxcd/kustomize-controller (Go) Fixed in 0.15.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-41254
  2. 2026-10-03 Alias added: GHSA-35rf-v2jv-gfg7

References

  • TI-2022-08687 Improper path handling in kustomization files allows path traversal CVSS 3.1CRITICAL 9.9
  • TI-2022-08630 Improper kubeconfig validation allows arbitrary code execution CVSS 3.1CRITICAL 9.9
  • TI-2022-08688 Improper path handling in Kustomization files allows for denial of service CVSS 3.1HIGH 7.7
  • TI-2022-18648 Flux2 vulnerable to Denial of Service due to Improper use of metav1.Duration CVSS 3.1MEDIUM 5.0

Sources