Skip to content
OpenAdvisories
Critical · 9.9 CVE-2022-24877 BIT-flux-2022-24877BIT-kustomize-2022-24877EUVD-2022-4298GHSA-j77r-2fxf-5jrwGO-2022-0447

Improper path handling in kustomization files allows path traversal

Published May 6, 2022 · Updated Apr 23, 2025 · Assigned by GitHub_M

Description

Flux is an open and extensible continuous delivery solution for Kubernetes. Path Traversal in the kustomize-controller via a malicious `kustomization.yaml` allows an attacker to expose sensitive data from the controller’s pod filesystem and possibly privilege escalation in multi-tenancy deployments. Workarounds include automated tooling in the user's CI/CD pipeline to validate `kustomization.yaml` files conform with specific policies. This vulnerability is fixed in kustomize-controller v0.24.0 and included in flux2 v0.29.0.

Affected products

VendorProductAffectedFixed
fluxcd flux2 flux2 < v0.29.0, kustomize-controller < v0.24.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/fluxcd/flux2 < 0.29.0 0.29.0 GHSA-j77r-2fxf-5jrw
Go github.com/fluxcd/kustomize-controller < 0.24.0 0.24.0 GHSA-j77r-2fxf-5jrw

References