Skip to content

CVE-2022-24878 Improper path handling in Kustomization files allows for denial of service

MediumCVSS 6.5 EPSS 1.0%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
Kubernetes

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 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.

Upgrade path

4 packages: 4 fixed.

PackageAffectedFixed inStatus
fluxcd github.com/fluxcd/flux2 < 0.29.0; = flux2 < v0.28.5, >= v0.19.0; = kustomize < v0.29.0, >= v0.16.0 0.29.0 Fixed
fluxcd github.com/fluxcd/flux2(Go) >= 0.19.0, < 0.29.0 0.29.0 Fixed
fluxcd github.com/fluxcd/kustomize-controller < 0.24.0 0.24.0 Fixed
fluxcd github.com/fluxcd/kustomize-controller(Go) >= 0.16.0, < 0.24.0 0.24.0 Fixed

Affected products

ProductAffected versionsFixed in
fluxcd github.com/fluxcd/kustomize-controller(Go) >= 0.16.0, < 0.24.0 0.24.0
fluxcd github.com/fluxcd/flux2(Go) >= 0.19.0, < 0.29.0 0.29.0
fluxcd github.com/fluxcd/flux2 = flux2 < v0.28.5, >= v0.19.0 No fix listed
fluxcd github.com/fluxcd/flux2 = kustomize < v0.29.0, >= v0.16.0 No fix listed
fluxcd github.com/fluxcd/flux2 < 0.29.0 0.29.0
fluxcd github.com/fluxcd/kustomize-controller < 0.24.0 0.24.0

References