Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2022-24817

CRITICAL 9.9EPSS 66%

Improper kubeconfig validation allows arbitrary code execution

Also known as BIT-flux-2022-24817, BIT-kustomize-2022-24817, GHSA-vvmq-fwmg-2gjc

Mitigation

  • Upgrade github.com/fluxcd/flux2 to 0.29.0 or later.
  • Upgrade github.com/fluxcd/kustomize-controller to 0.23.0 or later.
  • Upgrade github.com/fluxcd/helm-controller to 0.19.0 or later.

Who should check

  • Projects that depend on Go package github.com/fluxcd/flux2 (>= 0.1.0, < 0.29.0)
  • Projects that depend on Go package github.com/fluxcd/kustomize-controller (>= 0.1.0, < 0.23.0)
  • Projects that depend on Go package github.com/fluxcd/helm-controller (>= 0.2.0, < 0.19.0)
  • Anyone running fluxcd flux2 flux2 < v0.29.0 >= v0.1.0; helm-controller < v0.23.0 >= v0.1.0; kustomize-controller < v0.19.0 >= v0.2.0

Vulnerability facts

Affected
github.com/fluxcd/flux2 >= 0.1.0, < 0.29.0; github.com/fluxcd/kustomize-controller >= 0.1.0, < 0.23.0; github.com/fluxcd/helm-controller >= 0.2.0, < 0.19.0
Fixed in
0.29.0, 0.23.0, 0.19.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
9.9 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
1.12% chance of exploitation in 30 days (percentile 66, 2026-11-26)
CWE
CWE-94
Published
Modified

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

Affected and fixed versions

Package / productAffectedFixedSource
Go github.com/fluxcd/flux2>= 0.1.0, < 0.29.00.29.0osv
Go github.com/fluxcd/kustomize-controller>= 0.1.0, < 0.23.00.23.0osv
Go github.com/fluxcd/helm-controller>= 0.2.0, < 0.19.00.19.0osv
fluxcd flux2flux2 < v0.29.0 >= v0.1.0; helm-controller < v0.23.0 >= v0.1.0; kustomize-controller < v0.19.0 >= v0.2.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2022-24817. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-24817.md
Affected: github.com/fluxcd/flux2 >= 0.1.0, < 0.29.0; github.com/fluxcd/kustomize-controller >= 0.1.0, < 0.23.0; github.com/fluxcd/helm-controller >= 0.2.0, < 0.19.0
Fixed in: 0.29.0, 0.23.0, 0.19.0

Steps:
1. Search this machine and project for github.com/fluxcd/flux2 (Go), github.com/fluxcd/kustomize-controller (Go), github.com/fluxcd/helm-controller (Go), fluxcd flux2: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2022-24817 being exploited?

There is no confirmed exploitation: CVE-2022-24817 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.12% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2022-24817?

Critical: CVSS 9.9 (v3.1, scored by CNA). Remote, login needed.

Which versions are affected by CVE-2022-24817?

github.com/fluxcd/flux2 >= 0.1.0, < 0.29.0; github.com/fluxcd/kustomize-controller >= 0.1.0, < 0.23.0; github.com/fluxcd/helm-controller >= 0.2.0, < 0.19.0.

Is there a fix for CVE-2022-24817?

Yes. Fixed in 0.29.0, 0.23.0, 0.19.0. Upgrade github.com/fluxcd/flux2 to 0.29.0 or later. Upgrade github.com/fluxcd/kustomize-controller to 0.23.0 or later. Upgrade github.com/fluxcd/helm-controller to 0.19.0 or later.

How do I check if I'm affected by CVE-2022-24817?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors