CVE-2021-41254
Last modified
CVE-2021-41254 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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. EPSS estimates a 1.77% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Fluxcd | Kustomize-Controller | < 0.15.0 |
References
- https://github.com/fluxcd/kustomize-controller/security/advisories/GHSA-35rf-v2jv-gfg7Exploit, Mitigation, Third Party Advisory
- https://github.com/fluxcd/kustomize-controller/security/advisories/GHSA-35rf-v2jv-gfg7Exploit, Mitigation, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-41254?
How severe is CVE-2021-41254?
How do I fix CVE-2021-41254?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-41249GraphQL Playground is a GraphQL IDE for development of graph…4.7
- CVE-2021-4125It was found that the original fix for log4j CVE-2021-44228 …8.1
- CVE-2021-41250Python discord bot is the community bot for the Python Disco…4.3
- CVE-2021-41251@sap-cloud-sdk/core contains the core functionality of the S…5.9
- CVE-2021-41252Kirby is an open source file structured CMS ### Impact Kirby…5.4
- CVE-2021-41253Zydis is an x86/x86-64 disassembler library. Users of Zydis …8.1
- CVE-2021-41256nextcloud news-android is an Android client for the Nextclou…7.1
- CVE-2021-41258Kirby is an open source file structured CMS. In affected ver…5.4
- CVE-2021-41259Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultID…
- CVE-2021-4126When receiving an OpenPGP/MIME signed email message that con…6.5
- CVE-2021-41260Galette is a membership management web application built for…8.8
- CVE-2021-41261Galette is a membership management web application built for…4.8
Are you affected by CVE-2021-41254?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
