{"id":"CVE-2022-36035","published":"2022-08-31T14:55:09Z","modified":"2025-04-23T17:47:18Z","title":"Flux CLI Workload Injection","vendor":"fluxcd","product":"flux2","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00318,"percentile":0.25419,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/fluxcd/flux2/security/advisories/GHSA-xwf3-6rgv-939r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/fluxcd/flux2/releases/tag/v0.32.0","tags":["x_refsource_MISC"]}],"priority":{"score":10.5,"factors":[{"name":"EPSS percentile","points":5.08},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"fluxcd","affectedVersions":[{"vendor":"fluxcd","product":"flux2","versions":["< 0.32.0, >= 0.21.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:50:34.420187Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/fluxcd/flux2","vulnerableRanges":[">=0.21.0, <0.32.0"],"patched":["0.32.0"],"from":["GHSA-xwf3-6rgv-939r","GO-2022-0960"],"provenance":"source"}],"summary":{"text":"The flaw is a path traversal in the Flux CLI, the command-line tool of the flux2 product from fluxcd, used to deploy Flux components into a Kubernetes cluster. An attacker can use it to replace the Flux deployment information with arbitrary content that then gets deployed into the target cluster; this requires local access, high privileges, and user interaction, and it affects users who share a shell between other applications and Flux CLI commands.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:59:13Z"},"euvd":{"id":"EUVD-2022-6984","exploited":false,"provenance":"source"}}