CVE-2022-36035 json
Flux CLI Workload Injection
published 2022-08-31 4 y ago modified 2026-09-08 2 mo ago also BIT-flux-2022-36035 , EUVD-2022-6984 , GHSA-xwf3-6rgv-939r , GO-2022-0960
- cvss
- 7.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 24%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/fluxcd/flux2 0.32.0
- bitnami flux 0.32.0
- fluxcd flux2 0.32.0
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
0.32% chance of exploitation in the next 30 days, higher than 24% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.7 | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H |
| GitHub | 3.1 | 7.7 | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/fluxcd/flux2 | >=0.21.0, <0.32.0 |
0.32.0 |
| bitnami | flux | >=0.21.0, <0.32.0 |
0.32.0 |
Affected products
- fluxcd flux2
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/fluxcd/flux2/security/advisories/GHSA-xwf3-6rgv-939r
web, mitigation, third-party-advisory, advisory
-
github.com
/fluxcd/flux2/releases/tag/v0.32.0
web, release-notes, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-36035
advisory, web
-
github.com
/fluxcd/flux2
package
Sources
- CVE List CVE-2022-36035
- GitHub Advisory GHSA-xwf3-6rgv-939r
- NVD CVE-2022-36035
- OSV BIT-flux-2022-36035
- OSV GO-2022-0960
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.