Privilege escalation to cluster admin on multi-tenant environments
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
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| fluxcd | kustomize-controller | before 0.15.0 | 0.15.0 | Patch available | CNA |
| — | github.com/fluxcd/kustomize-controller (Go) | before 0.15.0 | 0.15.0 | Patch available | GHSA-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
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
- 2026-10-02 Threatist record created from CVE-2021-41254
- 2026-10-03 Alias added: GHSA-35rf-v2jv-gfg7
References
More fluxcd Kustomize-controller vulnerabilities
- 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
- CVE-2021-41254 · CVE Program
- CVE-2021-41254 · NVD
- FIRST EPSS
- GHSA-35rf-v2jv-gfg7 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences