9.9

CVE-2022-24817: Improper kubeconfig validation allows arbitrary code execution

Modified
AliasesGHSA-vvmq-fwmg-2gjcBIT-flux-2022-24817BIT-kustomize-2022-24817
Published 06-05-2022Last modified 23-04-2025

Vulnerability summary

CVE-2022-24817 is a critical (CVSS 9.9) Improper Control of Generation of Code vulnerability in fluxcd flux2. EPSS estimates a 1.12% chance of exploitation in the next 30 days, higher than 66.1% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 9.9 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 03-11-2026)

Source freshness unavailable

How is this decided?
CVSS score
9.9/10
010
Critical · v3.1 (CVE.org)
EPSS score
1.12%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 06-05-2022
    PublishedVulnerability first disclosed.
  2. 23-04-2025
    Last modifiedVulnerability information updated.

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

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

1.12%

Chance of exploitation in the next 30 days

Percentile

66%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.12% 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

0 found

No public exploits indexed.

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.

Fluxcd3 products
  • flux2flux2 < v0.29.0 >= v0.1.0 | helm-controller < v0.23.0 >= v0.1.0 | kustomize-controller < v0.19.0 >= v0.2.0 | ≥ 0.1.0, < 0.29.0
  • helm-controller≥ 0.2.0, < 0.19.0
  • kustomize-controller≥ 0.1.0, < 0.23.0
Github.com/fluxcd3 products
  • flux2≥ 0.1.0, < 0.29.0
  • helm-controller≥ 0.2.0, < 0.19.0
  • kustomize-controller≥ 0.1.0, < 0.23.0

2 vendors · 6 products

References

3 links