Vulnerability · Published May 6, 2022 · Assigned by GitHub_M
CVE-2022-24877Improper path handling in kustomization files allows path traversal
Critical 9.9
In plain English
A critical-severity path traversal in flux2 from fluxcd. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 68% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/fluxcd/flux2 | 0.29.0 | GHSA-j77r-2fxf-5jrw |
| Go | github.com/fluxcd/flux2 | 0.29.0 | GO-2022-0447 |
| Go | github.com/fluxcd/kustomize-controller | 0.24.0 | GHSA-j77r-2fxf-5jrw |
| Go | github.com/fluxcd/kustomize-controller | 0.24.0 | GO-2022-0447 |
Affected products (as reported)
Weakness: CWE-22, CWE-36 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/fluxcd/flux2/security/advisories/GHSA-j77r-2fxf-5jrw x_refsource_CONFIRM