{"id":"GHSA-7pwf-jg34-hxwp","summary":"Improper path handling in Kustomization files allows for denial of service","details":"The kustomize-controller enables the use of Kustomize’s functionality when applying Kubernetes declarative state onto a cluster. A malicious user can use a specially crafted `kustomization.yaml` to cause Denial of Service at controller level.\n\nIn multi-tenancy deployments this can lead to multiple tenants not being able to apply their Kustomizations until the malicious `kustomization.yaml` is removed and the controller restarted.\n\n### Impact\n\nWithin the affected versions, users with write access to a Flux source are able to craft a malicious `kustomization.yaml` file which causes the controller to enter an endless loop.\n\n### Patches\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 better handling of Kustomization files blocking references that could lead to endless loops.\n\n### Credits\n\nThe Flux engineering team found and patched this vulnerability.\n\n### For more information\n\nIf you have any questions or comments about this advisory please open an issue in the [flux2 repository](http://github.com/fluxcd/flux2).","aliases":["BIT-flux-2022-24878","BIT-kustomize-2022-24878","CVE-2022-24878","GO-2022-0448"],"modified":"2025-12-02T18:27:27.998780Z","published":"2022-05-20T16:58:38Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2022-05-20T16:58:38Z","nvd_published_at":"2022-05-06T02:15:00Z","cwe_ids":["CWE-674"],"severity":"HIGH"},"references":[{"type":"WEB","url":"https://github.com/fluxcd/flux2/security/advisories/GHSA-7pwf-jg34-hxwp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24878"},{"type":"PACKAGE","url":"https://github.com/fluxcd/flux2"}],"affected":[{"package":{"name":"github.com/fluxcd/kustomize-controller","ecosystem":"Go","purl":"pkg:golang/github.com/fluxcd/kustomize-controller"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.16.0"},{"fixed":"0.24.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-7pwf-jg34-hxwp/GHSA-7pwf-jg34-hxwp.json"}},{"package":{"name":"github.com/fluxcd/flux2","ecosystem":"Go","purl":"pkg:golang/github.com/fluxcd/flux2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.19.0"},{"fixed":"0.29.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-7pwf-jg34-hxwp/GHSA-7pwf-jg34-hxwp.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H"}]}