CVE-2022-24877 Improper path handling in kustomization files allows path traversal
HighCVSS 8.8
EPSS 1.2%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- 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 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.
Upgrade path
4 packages: 4 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| fluxcd github.com/fluxcd/flux2 | < 0.29.0; = flux2 < v0.29.0; = kustomize-controller < v0.24.0 | 0.29.0 | Fixed |
| fluxcd github.com/fluxcd/flux2(Go) | < 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.24.0 | 0.24.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| fluxcd github.com/fluxcd/kustomize-controller(Go) | < 0.24.0 | 0.24.0 |
| fluxcd github.com/fluxcd/flux2(Go) | < 0.29.0 | 0.29.0 |
| fluxcd github.com/fluxcd/flux2 | = flux2 < v0.29.0 | No fix listed |
| fluxcd github.com/fluxcd/flux2 | = kustomize-controller < v0.24.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
- github.com vendor-advisory
- github.com patch
- github.com patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com