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

CVE-2022-24817 · Severity: low · CVSS 3.1 · Published 2022-05-16

Improper kubeconfig validation allows arbitrary code execution

Technologies: github.com/fluxcd/flux2 (Go), github.com/fluxcd/helm-controller (Go), github.com/fluxcd/kustomize-controller (Go). Vendors: Go.

Quick answers

Is CVE-2022-24817 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2022-24817 being exploited in the wild.
How severe is CVE-2022-24817?
Low severity, with a CVSS score of 3.1, published 16 May 2022.
Which products and versions are affected?
github.com/fluxcd/flux2 (Go) SEMVER:introduced=0.1.0,fixed=0.29.0; github.com/fluxcd/helm-controller (Go) SEMVER:introduced=0.2.0,fixed=0.19.0; github.com/fluxcd/kustomize-controller (Go) SEMVER:introduced=0.1.0,fixed=0.23.0.
Is there a fix for CVE-2022-24817?
Yes. github.com/fluxcd/flux2 (Go): upgrade to 0.29.0 or later; github.com/fluxcd/helm-controller (Go): upgrade to 0.19.0 or later; github.com/fluxcd/kustomize-controller (Go): upgrade to 0.23.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2022-24817?
Check whether you run github.com/fluxcd/flux2 (Go), github.com/fluxcd/helm-controller (Go) or github.com/fluxcd/kustomize-controller (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • github.com/fluxcd/flux2 (Go): upgrade to 0.29.0 or later
    go get github.com/fluxcd/flux2@v0.29.0
  • github.com/fluxcd/helm-controller (Go): upgrade to 0.19.0 or later
    go get github.com/fluxcd/helm-controller@v0.19.0
  • github.com/fluxcd/kustomize-controller (Go): upgrade to 0.23.0 or later
    go get github.com/fluxcd/kustomize-controller@v0.23.0

Affected products

  • github.com/fluxcd/flux2 (Go) SEMVER:introduced=0.1.0,fixed=0.29.0
  • github.com/fluxcd/helm-controller (Go) SEMVER:introduced=0.2.0,fixed=0.19.0
  • github.com/fluxcd/kustomize-controller (Go) SEMVER:introduced=0.1.0,fixed=0.23.0

Identifiers

  • CVE-2022-24817
  • GHSA-vvmq-fwmg-2gjc

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.