CVE-2022-24877
Flux Kustomize Controller vulnerability analysis and mitigation

Overview

Flux, an open and extensible continuous delivery solution for Kubernetes, was found to contain a critical path traversal vulnerability (CVE-2022-24877) in its kustomize-controller component. The vulnerability was discovered in early 2022 and affects versions prior to v0.29.0. The issue allows attackers to exploit malicious kustomization.yaml files to expose sensitive data from the controller's pod filesystem (GitHub Advisory, CVE Mitre).

Technical details

The vulnerability stems from improper path handling in Kustomization files within the kustomize-controller component. The issue allows attackers to leverage built-in features through a specially crafted kustomization.yaml file to access sensitive data outside the intended filesystem scope. The vulnerability has been assigned a Critical severity rating with a CVSS v3.1 score of 10.0, indicating the highest level of severity. The attack vector is network-based, requires low complexity and privileges, and can result in a scope change with high impact on confidentiality, integrity, and availability (GitHub Advisory).

Impact

The vulnerability's impact is particularly severe in multi-tenancy deployments where the controller's service account has elevated permissions. Users with write access to a Flux source can potentially expose sensitive data from the controller's pod filesystem, leading to privilege escalation in multi-tenant environments. This could result in unauthorized access to sensitive information and potential system compromise (GitHub Advisory, Kubernetes Discussion).

Mitigation and workarounds

The vulnerability was patched in kustomize-controller v0.24.0 and included in flux2 v0.29.0, released on April 20, 2022. The fix introduces a new Kustomize file system implementation that ensures all handled files are contained within the Kustomization working directory. For users unable to update immediately, a recommended workaround includes implementing automated tooling (such as conftest) in CI/CD pipelines to validate kustomization.yaml files against specific security policies (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Flux Kustomize Controller vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2022-24817CRITICAL9.9
  • Flux Kustomize ControllerFlux Kustomize Controller
  • cpe:2.3:a:fluxcd:kustomize-controller
NoYesMay 06, 2022
CVE-2022-24877HIGH8.8
  • Flux Kustomize ControllerFlux Kustomize Controller
  • cpe:2.3:a:fluxcd:kustomize-controller
NoYesMay 06, 2022
CVE-2021-41254HIGH8.8
  • Flux Kustomize ControllerFlux Kustomize Controller
  • github.com/fluxcd/kustomize-controller
NoYesNov 12, 2021
CVE-2022-24878MEDIUM6.5
  • Flux Kustomize ControllerFlux Kustomize Controller
  • github.com/fluxcd/flux2
NoYesMay 06, 2022
CVE-2022-39272MEDIUM4.3
  • Flux Kustomize ControllerFlux Kustomize Controller
  • kubevela
NoYesOct 22, 2022

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management