{"answers":{"affected":"4 open source packages ship an affected version, including github.com/fluxcd/flux2 and flux. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-36035 in the wild and no public exploit code.","fix":"Upgrade github.com/fluxcd/flux2 to 0.32.0 or later.","what":"CVE-2022-36035 is a high-severity path traversal vulnerability in fluxcd flux2, published on 31 Aug 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-36035 and fix it if it is affected.\n\nWhat it is: CVE-2022-36035 is a high-severity path traversal vulnerability in fluxcd flux2, published on 31 Aug 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-36035 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/fluxcd/flux2 (Go): affected from 0.21.0; fixed in 0.32.0\n- github.com/fluxcd/flux2 (Go): affected from 0.21.0; fixed in 0.32.0\n- github.com/fluxcd/flux2 (Go): affected from 0.21.0; fixed in 0.32.0\n- flux (Bitnami): affected from 0.21.0; fixed in 0.32.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-36035/ (Markdown: https://insights.sbomify.com/CVE-2022-36035/index.md)","id":"CVE-2022-36035","markdown":"https://insights.sbomify.com/CVE-2022-36035/index.md","name":"CVE-2022-36035","record":{"aliases":["BIT-flux-2022-36035","GHSA-xwf3-6rgv-939r","GO-2022-0960"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Flux CLI","requires_auth":"high_privilege","summary":"Attackers can inject arbitrary content into Kubernetes deployments via path traversal in Flux CLI, potentially leading to code execution or privilege escalation.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"flux2","vendor":"fluxcd"}],"cvss":{"score":7.7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Flux is a tool for keeping Kubernetes clusters in sync with sources of configuration (like Git repositories), and automating updates to configuration when there is new code to deploy. Flux CLI allows users to deploy Flux components into a Kubernetes cluster via command-line. The vulnerability allows other applications to replace the Flux deployment information with arbitrary content which is deployed into the target Kubernetes cluster instead. The vulnerability is due to the improper handling of user-supplied input, which results in a path traversal that can be controlled by the attacker. Users sharing the same shell between other applications and the Flux CLI commands could be affected by this vulnerability. In some scenarios no errors may be presented, which may cause end users not to realize that something is amiss. A safe workaround is to execute Flux CLI in ephemeral and isolated shell environments, which can ensure no persistent values exist from previous processes. However, upgrading to the latest version of the CLI is still the recommended mitigation strategy.","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":"Flux CLI Workload Injection","id":"CVE-2022-36035","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"path_traversal","year":"2022"},"n_packages":4,"n_references":2,"next":{"headline":"Improper Control of Generation of Code ('Code Injection') in mdx-mermaid","id":"CVE-2022-36036"},"packages":[{"ecosystem":"Bitnami","fixed":["0.32.0"],"introduced":["0.21.0"],"last_affected":[],"package":"flux","purl":"pkg:bitnami/flux","source":"BIT-flux-2022-36035"},{"ecosystem":"Go","fixed":["0.32.0"],"introduced":["0.21.0"],"last_affected":[],"package":"github.com/fluxcd/flux2","purl":null,"source":"GHSA-xwf3-6rgv-939r"},{"ecosystem":"Go","fixed":["0.32.0"],"introduced":["0.21.0"],"last_affected":[],"package":"github.com/fluxcd/flux2","purl":"pkg:golang/github.com/fluxcd/flux2","source":"GHSA-xwf3-6rgv-939r"},{"ecosystem":"Go","fixed":["0.32.0"],"introduced":["0.21.0"],"last_affected":[],"package":"github.com/fluxcd/flux2","purl":"pkg:golang/github.com/fluxcd/flux2","source":"GO-2022-0960"}],"prev":{"headline":"Possible Regular Expression Denial of Service (ReDoS) used on uncontrolled data in nitrado.js","id":"CVE-2022-36034"},"products":["flux2"],"published":"2022-08-31","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":9.9,"headline":"Improper path handling in kustomization files allows path traversal","id":"CVE-2022-24877","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":"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 inject arbitrary content into Kubernetes deployments via path traversal in Flux CLI, potentially leading to code execution or privilege escalation.","url":"https://insights.sbomify.com/CVE-2022-36035/"}