{"id":"CVE-2022-24877","aliases":["CVE-2022-24877","GHSA-j77r-2fxf-5jrw","BIT-FLUX-2022-24877","BIT-KUSTOMIZE-2022-24877","GO-2022-0447"],"related":["CGA-g8qj-2985-6m93"],"kind":"vulnerability","state":"published","title":"Improper path handling in kustomization files allows path traversal","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"The kustomize-controller enables the use of Kustomize’s functionality when applying Kubernetes declarative state onto a cluster. A malicious user can use built-in features and a specially crafted `kustomization.yaml` to expose sensitive data from the controller’s pod filesystem. In multi-tenancy deployments this can lead to privilege escalation if the controller's service account has elevated permissions.\n\nWithin the affected versions, users with write access to a Flux source are able to use built-in features to expose sensitive data from the controller’s pod filesystem using a malicious `kustomization.yaml` file.\n\nThis vulnerability was fixed in kustomize-controller v0.24.0 and included in flux2 v0.29.0 released on 2022-04-20. The changes introduce a new Kustomize file system implementation which ensures that all files being handled are contained within the Kustomization working directory, blocking references to any files that do not meet that requirement.\n\nAutomated tooling (e.g. conftest) could be employed as a workaround, as part of a user's CI/CD pipeline to ensure that their `kustomization.yaml` files conform with specific policies, blocking access to sensitive path locations.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Improper path handling in kustomization files allows path traversal in github.com/fluxcd/flux2","format":"markdown","source":"go"},{"lang":"es","text":"Flux es una solución de entrega continua abierta y extensible para Kubernetes. Un Salto de Ruta en el controlador kustomize por medio de un \"kustomization.yaml\" malicioso permite a un atacante exponer datos confidenciales del sistema de archivos del pod del controlador y posiblemente escalar privilegios en despliegues multi-tenancy. Las mitigaciones incluyen herramientas automatizadas en la cadena de trabajo CI/CD del usuario para comprobar que los archivos \"kustomization.yaml\" sean ajustados a políticas específicas. Esta vulnerabilidad ha sido corregida en kustomize-controller versiones v0.24.0 y ha sido incluida en flux2 versión v0.29.0","source":"nvd"}],"published":"2022-05-04T18:04:07.000Z","modified":"2026-09-10T16:01:41.509Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","score":6.5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-22","CWE-36"],"affected":[{"ranges":[{"version":"flux2 < v0.29.0","status":"affected"},{"version":"kustomize-controller < v0.24.0","status":"affected"}],"vendor":"fluxcd","product":"flux2","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.24.0"}],"ecosystem":"Go","package":"github.com/fluxcd/kustomize-controller","purl":"pkg:golang/github.com/fluxcd/kustomize-controller","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.29.0"}],"ecosystem":"Go","package":"github.com/fluxcd/flux2","purl":"pkg:golang/github.com/fluxcd/flux2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.29.0"}],"ecosystem":"Go","package":"github.com/fluxcd/flux2","purl":"pkg:golang/github.com/fluxcd/flux2","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.24.0"}],"ecosystem":"Go","package":"github.com/fluxcd/kustomize-controller","purl":"pkg:golang/github.com/fluxcd/kustomize-controller","source":"go"},{"ranges":[{"status":"affected","fixed":"0.29.0"}],"vendor":"fluxcd","product":"flux2","cpe":"cpe:2.3:a:fluxcd:flux2:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"0.24.0"}],"vendor":"fluxcd","product":"kustomize-controller","cpe":"cpe:2.3:a:fluxcd:kustomize-controller:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.29.0"}],"ecosystem":"Bitnami","package":"flux","purl":"pkg:bitnami/flux","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.24.0"}],"ecosystem":"Bitnami","package":"kustomize","purl":"pkg:bitnami/kustomize","source":"bitnami"}],"references":[{"url":"https://github.com/fluxcd/flux2/security/advisories/GHSA-j77r-2fxf-5jrw","tags":["advisory","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24877","tags":["advisory","web"],"sources":["ghsa","go","bitnami"]},{"url":"https://github.com/fluxcd/kustomize-controller/commit/f4528fb25d611da94e491346bea056d5c5c3611f","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/fluxcd/pkg/commit/0ec014baf417fd3879d366a45503a548b9267d2a","tags":["web"],"sources":["ghsa","go"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-04-23T15:53:19.398Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-24877","url":"https://www.cve.org/CVERecord?id=CVE-2022-24877","licence":"CVE Terms of Use","modified":"2025-04-23T18:29:38.832Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j77r-2fxf-5jrw","url":"https://github.com/advisories/GHSA-j77r-2fxf-5jrw","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:38.809Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0447","url":"https://pkg.go.dev/vuln/GO-2022-0447","licence":"CC-BY-4.0","modified":"2026-02-04T03:57:17.744Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-24877","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24877","licence":"Public domain","modified":"2026-06-17T04:32:42.773Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-FLUX-2022-24877","url":"https://osv.dev/vulnerability/BIT-FLUX-2022-24877","licence":"Apache-2.0","modified":"2026-09-10T16:01:31.606Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-KUSTOMIZE-2022-24877","url":"https://osv.dev/vulnerability/BIT-KUSTOMIZE-2022-24877","licence":"Apache-2.0","modified":"2026-09-10T16:01:41.509Z"}],"updatedAt":"2026-11-25T22:58:11.489Z","epss":{"score":0.01187,"percentile":0.68757,"date":"2026-12-01T12:00:22.000Z"}}