CVE-2022-24817
published critical CVSS 3.1 · 9.9Improper kubeconfig validation allows arbitrary code execution
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| fluxcd | — | flux2flux2 < v0.29.0 >= v0.1.0 · helm-controller < v0.23.0 >= v0.1.0 · kustomize-controller < v0.19.0 >= v0.2.0 | Affected | Not stated | GitHub_M |
Description
Flux2 is an open and extensible continuous delivery solution for Kubernetes. Flux2 versions between 0.1.0 and 0.29.0, helm-controller 0.1.0 to v0.19.0, and kustomize-controller 0.1.0 to v0.23.0 are vulnerable to Code Injection via malicious Kubeconfig. In multi-tenancy deployments this can also lead to privilege escalation if the controller's service account has elevated permissions. Workarounds include disabling functionality via Validating Admission webhooks by restricting users from setting the `spec.kubeConfig` field in Flux `Kustomization` and `HelmRelease` objects. Additional mitigations include applying restrictive AppArmor and SELinux profiles on the controller’s pod to limit what binaries can be executed. This vulnerability is fixed in kustomize-controller v0.23.0 and helm-controller v0.19.0, both included in flux2 v0.29.0
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.9 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| fluxcd | flux2 | flux2 < v0.29.0 >= v0.1.0 (affected)helm-controller < v0.23.0 >= v0.1.0 (affected)kustomize-controller < v0.19.0 >= v0.2.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')
References
1Provider assertions
3GitHub_M · cna
Improper kubeconfig validation allows arbitrary code execution
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- d1efc78153074d47b132e80795e3ae23f8b931e40bfb78a7bd864ce514e290ea
- Ingested
- 23 Sep 2026, 07:58:57 UTC
- Source record
- Official CVE record