{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-24877","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`","descriptionLong":"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.","published":"2022-05-06T01:10:09.000Z","updated":"2026-11-16T02:45:20.354752783Z","reserved":"2022-02-10T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"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","rating":"critical","source":"GitHub_M"},"metrics":[{"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","rating":"critical","source":"GitHub_M"},{"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","rating":"critical","source":"github.com"},{"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","rating":"high","source":"NVD"},{"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","rating":"critical","source":"OSV"},{"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","rating":"critical","source":"GitHub"},{"version":"2.0","score":6.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"critical","products":["fluxcd flux2"],"affectedProducts":[{"vendor":"fluxcd","product":"flux2","defaultStatus":null,"versions":[{"status":"affected","version":"flux2 < v0.29.0"},{"status":"affected","version":"kustomize-controller < v0.24.0"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/fluxcd/kustomize-controller","purl":"pkg:golang/github.com/fluxcd/kustomize-controller","ranges":["<0.24.0"],"fixed":["0.24.0"],"advisory":"GHSA-j77r-2fxf-5jrw"},{"ecosystem":"Go","name":"github.com/fluxcd/flux2","purl":"pkg:golang/github.com/fluxcd/flux2","ranges":["<0.29.0"],"fixed":["0.29.0"],"advisory":"GHSA-j77r-2fxf-5jrw"}],"cwes":["CWE-22","CWE-36"],"aliases":["BIT-flux-2022-24877","BIT-kustomize-2022-24877","GHSA-j77r-2fxf-5jrw","GO-2022-0447"],"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/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24877.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24877","tags":["advisory"]},{"url":"https://github.com/fluxcd/kustomize-controller/commit/f4528fb25d611da94e491346bea056d5c5c3611f","tags":["web","fix"]},{"url":"https://github.com/fluxcd/pkg/commit/0ec014baf417fd3879d366a45503a548b9267d2a","tags":["web"]},{"url":"github.com/fluxcd/kustomize-controller","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.01187,"epssPercentile":0.68546,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-24877","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24877","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-24877","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-j77r-2fxf-5jrw","ok":true,"note":"GHSA-j77r-2fxf-5jrw"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-24877","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}