{"id":"CVE-2022-24877","aliases":["BIT-flux-2022-24877","BIT-kustomize-2022-24877","EUVD-2022-4298","GHSA-j77r-2fxf-5jrw","GO-2022-0447"],"status":"published","title":"Improper path handling in kustomization files allows path traversal","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.","severity":{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.01187,"percentile":0.68284,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22","CWE-36"],"published":"2022-05-04T18:04:07Z","modified":"2026-11-09T02:45:10Z","fixes":[{"ecosystem":"Go","package":"github.com/fluxcd/kustomize-controller","fixed_in":["0.24.0"],"sources":["ghsa","osv"]},{"ecosystem":"Go","package":"github.com/fluxcd/flux2","fixed_in":["0.29.0"],"sources":["ghsa","osv"]},{"ecosystem":"Bitnami","package":"flux","fixed_in":["0.29.0"],"sources":["osv"]},{"ecosystem":"Bitnami","package":"kustomize","fixed_in":["0.24.0"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/fluxcd/kustomize-controller","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.24.0"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/fluxcd/flux2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.29.0"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"flux","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.29.0"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"kustomize","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.24.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/fluxcd/kustomize-controller","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.24.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/fluxcd/flux2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.29.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/fluxcd/flux2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.29.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/fluxcd/kustomize-controller","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.24.0"}]}]}],"products":[{"vendor":"fluxcd","product":"flux2"},{"vendor":"fluxcd","product":"kustomize-controller"}],"references":[{"url":"https://github.com/fluxcd/flux2/security/advisories/GHSA-j77r-2fxf-5jrw","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://github.com/fluxcd/kustomize-controller/commit/f4528fb25d611da94e491346bea056d5c5c3611f","tags":["web","fix"]},{"url":"https://github.com/fluxcd/pkg/commit/0ec014baf417fd3879d366a45503a548b9267d2a","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24877","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-j77r-2fxf-5jrw"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24877.json","tags":["advisory"]},{"url":"github.com/fluxcd/kustomize-controller","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-24877","title":"Improper path handling in kustomization files allows path traversal","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.","status":"published","published":"2022-05-06T01:10:09Z","modified":"2025-04-23T18:29:38.832Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"cna"}],"cwes":["CWE-22","CWE-36"],"updated_at":"2026-11-02T14:34:34.576287Z"}],"euvd":[{"id":"EUVD-2022-4298","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.","status":"published","published":"2022-05-06T01:10:09Z","modified":"2025-04-23T18:29:38Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T20:52:08.401317Z"}],"ghsa":[{"id":"GHSA-j77r-2fxf-5jrw","title":"Improper path handling in kustomization files allows path traversal","description":"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.","status":"published","published":"2022-05-04T18:04:07Z","modified":"2023-02-01T05:01:45Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:36:30.61364Z"}],"nvd":[{"id":"CVE-2022-24877","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.","status":"published","published":"2022-05-06T01:15:09.387Z","modified":"2026-06-17T04:32:42.773Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"secondary"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-22","CWE-36"],"updated_at":"2026-11-02T14:07:19.51203Z"}],"osv":[{"id":"CVE-2022-24877","title":"Improper path handling in kustomization files allows path traversal","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.","status":"published","published":"2022-05-06T01:10:09Z","modified":"2026-11-09T02:45:10.16361323Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-22","CWE-36"],"updated_at":"2026-11-09T03:16:44.651171Z"},{"id":"GHSA-j77r-2fxf-5jrw","title":"Improper path handling in kustomization files allows path traversal","description":"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.","status":"published","published":"2022-05-04T18:04:07Z","modified":"2026-09-10T03:49:38.80962943Z","cvss":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:49.977351Z"},{"id":"BIT-flux-2022-24877","title":"Improper path handling in kustomization files allows path traversal","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.","status":"published","published":"2025-12-02T17:36:55.459Z","modified":"2026-09-10T16:01:31.606796625Z","updated_at":"2026-11-02T15:28:29.999658Z"},{"id":"BIT-kustomize-2022-24877","title":"Improper path handling in kustomization files allows path traversal","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.","status":"published","published":"2024-03-06T10:55:31.201Z","modified":"2026-09-10T16:01:41.509307146Z","updated_at":"2026-11-02T15:28:32.162822Z"},{"id":"GO-2022-0447","title":"Improper path handling in kustomization files allows path traversal in github.com/fluxcd/flux2","description":"Improper path handling in kustomization files allows path traversal in github.com/fluxcd/flux2","status":"published","published":"2024-08-21T15:11:31Z","modified":"2026-02-04T03:57:17.744517Z","updated_at":"2026-11-02T15:47:00.918515Z"}]}}
