CVE-2022-24817
CRITICAL 9.9CVSS 3.1Improper kubeconfig validation allows arbitrary code execution
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
- Published
- 6 May 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- BIT-flux-2022-24817BIT-kustomize-2022-24817GHSA-vvmq-fwmg-2gjc
- Sources
- NVDJSONOSV GHSA-vvmq-fwmg-2gjcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | fluxcd | flux2cpe:2.3:a:fluxcd:flux2:*:*:*:*:*:*:*:* |
>= 0.1.0, < 0.29.0 | 0.29.0 |
| NVD | fluxcd | helm-controllercpe:2.3:a:fluxcd:helm-controller:*:*:*:*:*:*:*:* |
>= 0.2.0, < 0.19.0 | 0.19.0 |
| NVD | fluxcd | kustomize-controllercpe:2.3:a:fluxcd:kustomize-controller:*:*:*:*:*:*:*:* |
>= 0.1.0, < 0.23.0 | 0.23.0 |
| OSV | Go | github.com/fluxcd/flux2 | >= 0.1.0, < 0.29.0 | 0.29.0 |
| OSV | Go | github.com/fluxcd/kustomize-controller | >= 0.1.0, < 0.23.0 | 0.23.0 |
| OSV | Go | github.com/fluxcd/helm-controller | >= 0.2.0, < 0.19.0 | 0.19.0 |
References
- https://github.com/fluxcd/flux2/security/advisories/GHSA-vvmq-fwmg-2gjc · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-24817 · ADVISORY
- https://github.com/fluxcd/flux2 · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 6 May 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 May 2022)