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.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24877.json",
"unresolved_ranges": [
{
"source": "AFFECTED_FIELD",
"extracted_events": [
{
"last_affected": "flux2 < v0.29.0"
}
]
}
],
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-22",
"CWE-36"
]
}{
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "0.29.0"
},
{
"fixed": "0.24.0"
}
],
"source": "CPE_FIELD",
"cpe": [
"cpe:2.3:a:fluxcd:flux2:*:*:*:*:*:*:*:*",
"cpe:2.3:a:fluxcd:kustomize-controller:*:*:*:*:*:*:*:*"
]
}{
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "0.24.0"
}
],
"source": "CPE_FIELD",
"cpe": "cpe:2.3:a:fluxcd:kustomize-controller:*:*:*:*:*:*:*:*"
}