CVE-2022-36035: Flux CLI Workload Injection
Vulnerability summary
CVE-2022-36035 is a high (CVSS 7.8) vulnerability in fluxcd flux2. EPSS estimates a 0.32% chance of exploitation in the next 30 days, higher than 24.8% of scored vulnerabilities.
Not severe (CVSS 7.7, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 31-08-2022PublishedVulnerability first disclosed.
- 23-04-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA7.7HighCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:HDiffers
- OSV · GoEcosystem advisory · calculated7.7HighCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:HDiffers
EPSS trend
Probability
0.32%
Chance of exploitation in the next 30 days
Percentile
25%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.32% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, administrative account, user interaction (CVSS vector). Other conditions: not stated in public data.
Fluxcd1 product
- flux2≥ 0.21.0, < 0.32.0
Github.com/fluxcd1 product
- flux2≥ 0.21.0, < 0.32.0
2 vendors · 2 products
References
4 links- github.com/fluxcd/flux2/security/advisories/GHSA-xwf3-6rgv-939rX Refsource CONFIRMWEBAdvisoryMitigationThird Party Advisory
- github.com/fluxcd/flux2PACKAGE