# CVE-2021-41254: Privilege escalation to cluster admin on multi-tenant environments

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.82%, higher than 79% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-11-12T17:45:10.000Z
- Modified: 2026-09-10T03:49:09.466Z
- Also known as: GHSA-35rf-v2jv-gfg7, BIT-KUSTOMIZE-2021-41254, GO-2022-0260
- Related: CGA-2v5c-p45x-5cx5
- Weaknesses: CWE-78
- Assigned by: GitHub_M

## 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. 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.

(As written by CVE List.)

## Affected

- fluxcd kustomize-controller: < 0.15.0; before 0.15.0
- github.com/fluxcd/kustomize-controller (Go): before 0.15.0
- kustomize (Bitnami): before 0.15.0

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 9.0 High `AV:N/AC:L/Au:S/C:C/I:C/A:C`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/fluxcd/kustomize-controller/security/advisories/GHSA-35rf-v2jv-gfg7> (exploit, advisory, mitigation, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-41254> (advisory, web)
- <https://github.com/fluxcd/kustomize-controller> (package)

## Sources

- CVE List: [CVE-2021-41254](https://www.cve.org/CVERecord?id=CVE-2021-41254), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-35rf-v2jv-gfg7](https://github.com/advisories/GHSA-35rf-v2jv-gfg7), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2022-0260](https://pkg.go.dev/vuln/GO-2022-0260), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2021-41254](https://nvd.nist.gov/vuln/detail/CVE-2021-41254), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-KUSTOMIZE-2021-41254](https://osv.dev/vulnerability/BIT-KUSTOMIZE-2021-41254), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-41254 · Whole record: https://cve.day/CVE-2021-41254.json · Rebuilt by cve.day 2026-11-25T22:58:05.526Z
