{"id":"CVE-2022-24877","published":"2022-05-06T01:10:09Z","modified":"2025-04-23T18:29:38Z","title":"Improper path handling in kustomization files allows path traversal","vendor":"fluxcd","product":"flux2","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01187,"percentile":0.68646,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-36","name":"Absolute Path Traversal"}],"references":[{"url":"https://github.com/fluxcd/flux2/security/advisories/GHSA-j77r-2fxf-5jrw","tags":["x_refsource_CONFIRM"]}],"priority":{"score":20.7,"factors":[{"name":"EPSS percentile","points":13.73},{"name":"CVSS severity","points":6.93}]},"vendorSlug":"fluxcd","affectedVersions":[{"vendor":"fluxcd","product":"flux2","versions":["flux2 < v0.29.0","kustomize-controller < v0.24.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:53:19.398679Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/fluxcd/kustomize-controller","vulnerableRanges":["<0.24.0"],"patched":["0.24.0"],"from":["GHSA-j77r-2fxf-5jrw","GO-2022-0447"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/fluxcd/flux2","vulnerableRanges":["<0.29.0"],"patched":["0.29.0"],"from":["GHSA-j77r-2fxf-5jrw","GO-2022-0447"],"provenance":"source"}],"summary":{"text":"Improper path handling in the kustomize-controller component of Flux2, the continuous delivery solution for Kubernetes, lets a malicious kustomization.yaml trigger path traversal. An attacker who can supply such a file, with low privileges and no user interaction over the network, can expose sensitive data from the controller's pod filesystem and, in multi-tenancy deployments, potentially escalate privileges.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:08:19Z"},"euvd":{"id":"EUVD-2022-4298","exploited":false,"provenance":"source"}}