GO-2022-0448: Improper path handling in Kustomization files allows for denial of service
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 cause a Denial of Service at the controller level. 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. Users are recommended to upgrade.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
kustomize-controllerto a version that resolves this vulnerability.Fixed in v0.24.0 - Upgrade
Upgrade
flux2to a version that resolves this vulnerability.Fixed in v0.29.0 - Compensating control
Use automated tooling in the CI/CD pipeline to validate kustomization.yaml files against specific policies.