{"answers":{"affected":"8 open source packages ship an affected version, including github.com/fluxcd/flux2, flux and kustomize. It affects 2 products.","exploited":"There is no known exploitation of CVE-2022-24877 in the wild and no public exploit code.","fix":"Upgrade github.com/fluxcd/flux2 to 0.29.0 or later.","what":"CVE-2022-24877 is a critical path traversal vulnerability in fluxcd flux2, published on 6 May 2022. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-24877 and fix it if it is affected.\n\nWhat it is: CVE-2022-24877 is a critical path traversal vulnerability in fluxcd flux2, published on 6 May 2022. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-24877 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/fluxcd/flux2 (Go): affected all versions; fixed in 0.29.0\n- github.com/fluxcd/flux2 (Go): affected all versions; fixed in 0.29.0\n- github.com/fluxcd/flux2 (Go): affected all versions; fixed in 0.29.0\n- flux (Bitnami): affected all versions; fixed in 0.29.0\n- kustomize (Bitnami): affected all versions; fixed in 0.24.0\n- github.com/fluxcd/kustomize-controller (Go): affected all versions; fixed in 0.24.0\n- github.com/fluxcd/kustomize-controller (Go): affected all versions; fixed in 0.24.0\n- github.com/fluxcd/kustomize-controller (Go): affected all versions; fixed in 0.24.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-24877/ (Markdown: https://insights.sbomify.com/CVE-2022-24877/index.md)","id":"CVE-2022-24877","markdown":"https://insights.sbomify.com/CVE-2022-24877/index.md","name":"CVE-2022-24877","record":{"aliases":["BIT-flux-2022-24877","BIT-kustomize-2022-24877","GHSA-j77r-2fxf-5jrw","GO-2022-0447"],"analysis":{"component_type":"cloud_service","fix_type":"upgrade","impacts":["data_read","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Kubernetes continuous delivery","requires_auth":"low_privilege","summary":"Attackers can exploit path traversal in kustomization files to read sensitive data from the controller pod and potentially escalate privileges in multi-tenant environments.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"flux2","vendor":"fluxcd"},{"product":"kustomize-controller","vendor":"fluxcd"}],"cvss":{"score":9.9,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-36","name":"Absolute Path Traversal"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["Bitnami","Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Improper path handling in kustomization files allows path traversal","id":"CVE-2022-24877","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"path_traversal","year":"2022"},"n_packages":8,"n_references":1,"next":{"headline":"Improper path handling in Kustomization files allows for denial of service","id":"CVE-2022-24878"},"packages":[{"ecosystem":"Bitnami","fixed":["0.29.0"],"introduced":["0"],"last_affected":[],"package":"flux","purl":"pkg:bitnami/flux","source":"BIT-flux-2022-24877"},{"ecosystem":"Bitnami","fixed":["0.24.0"],"introduced":["0"],"last_affected":[],"package":"kustomize","purl":"pkg:bitnami/kustomize","source":"BIT-kustomize-2022-24877"},{"ecosystem":"Go","fixed":["0.29.0"],"introduced":["0"],"last_affected":[],"package":"github.com/fluxcd/flux2","purl":null,"source":"GHSA-j77r-2fxf-5jrw"},{"ecosystem":"Go","fixed":["0.29.0"],"introduced":["0"],"last_affected":[],"package":"github.com/fluxcd/flux2","purl":"pkg:golang/github.com/fluxcd/flux2","source":"GHSA-j77r-2fxf-5jrw"},{"ecosystem":"Go","fixed":["0.29.0"],"introduced":["0"],"last_affected":[],"package":"github.com/fluxcd/flux2","purl":"pkg:golang/github.com/fluxcd/flux2","source":"GO-2022-0447"},{"ecosystem":"Go","fixed":["0.24.0"],"introduced":["0"],"last_affected":[],"package":"github.com/fluxcd/kustomize-controller","purl":null,"source":"GHSA-j77r-2fxf-5jrw"},{"ecosystem":"Go","fixed":["0.24.0"],"introduced":["0"],"last_affected":[],"package":"github.com/fluxcd/kustomize-controller","purl":"pkg:golang/github.com/fluxcd/kustomize-controller","source":"GHSA-j77r-2fxf-5jrw"},{"ecosystem":"Go","fixed":["0.24.0"],"introduced":["0"],"last_affected":[],"package":"github.com/fluxcd/kustomize-controller","purl":"pkg:golang/github.com/fluxcd/kustomize-controller","source":"GO-2022-0447"}],"prev":{"headline":"Stored cross site scrpting in GLPI's Kanban","id":"CVE-2022-24876"},"products":["flux2"],"published":"2022-05-06","related":[{"cvss_score":9.9,"headline":"Improper kubeconfig validation allows arbitrary code execution","id":"CVE-2022-24817","kev_date_added":null,"published":"2022-05-06"},{"cvss_score":7.7,"headline":"Flux2 Helm Controller denial of service","id":"CVE-2022-36049","kev_date_added":null,"published":"2022-09-07"},{"cvss_score":7.7,"headline":"Flux CLI Workload Injection","id":"CVE-2022-36035","kev_date_added":null,"published":"2022-08-31"},{"cvss_score":7.7,"headline":"Improper path handling in Kustomization files allows for denial of service","id":"CVE-2022-24878","kev_date_added":null,"published":"2022-05-06"},{"cvss_score":5,"headline":"Flux2 vulnerable to Denial of Service due to Improper use of metav1.Duration","id":"CVE-2022-39272","kev_date_added":null,"published":"2022-10-21"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["fluxcd"]},"summary":"Attackers can exploit path traversal in kustomization files to read sensitive data from the controller pod and potentially escalate privileges in multi-tenant environments.","url":"https://insights.sbomify.com/CVE-2022-24877/"}