9

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

Modified
AliasesCGA-2hmm-q7cp-8v4hCGA-6gj7-mgvh-w8rpCGA-96c2-x552-956g
Published 12-11-2021Last modified 04-08-2024

Vulnerability summary

CVE-2021-41254 is a high (CVSS 9.0) vulnerability in fluxcd kustomize-controller. EPSS estimates a 1.82% chance of exploitation in the next 30 days, higher than 78.8% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
9.0/10
010
High · v2.0 (NVD)
EPSS score
1.82%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 0 · Related 2

Timeline

  1. 12-11-2021
    PublishedVulnerability first disclosed.
  2. 04-08-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

1.82%

Chance of exploitation in the next 30 days

Percentile

79%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.82% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Kustomize Controller

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard2 products
  • flux-kustomize-controllerAll versions (No fix recorded)
  • flux-kustomize-controller-iamguarded-compatAll versions (No fix recorded)
Wolfi2 products
  • flux-kustomize-controllerAll versions (No fix recorded)
  • flux-kustomize-controller-iamguarded-compatAll versions (No fix recorded)
Fluxcd1 product
Github.com/fluxcd1 product
  • kustomize-controller< 0.15.0

4 vendors · 6 products

References

3 links