CVE-2022-24878: Improper path handling in Kustomization files allows for denial of service
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 cause a Denial of Service at the controller level. 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. Users are recommended to upgrade.
Affected Software
Event History
Frequently Asked Questions
What is CVE-2022-24878?
CVE-2022-24878 is a vulnerability in Flux, an open and extensible continuous delivery solution for Kubernetes, that allows an attacker to cause a Denial of Service at the controller level through Path Traversal in the kustomize-controller using a malicious `kustomization.yaml` file.
What is the severity of CVE-2022-24878?
The severity of CVE-2022-24878 is high with a CVSS score of 6.5.
Which software versions are affected by CVE-2022-24878?
Fluxcd Flux2 versions up to and exclusive of 0.29.0 and Fluxcd Kustomize-controller versions up to and exclusive of 0.24.0 are affected by CVE-2022-24878.
How can I mitigate CVE-2022-24878?
To mitigate CVE-2022-24878, you can implement automated tooling in your CI/CD pipeline to validate and sanitize `kustomization.yaml` files before they are processed by the kustomize-controller.
Where can I find more information about CVE-2022-24878?
You can find more information about CVE-2022-24878 in the official GitHub Security Advisory: [GitHub Advisory](https://github.com/fluxcd/flux2/security/advisories/GHSA-7pwf-jg34-hxwp)