CVE-2022-36035
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.
Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2025-04-23 |
Timeline
- 2022-08-31Published by the CNA14:55 UTC
- 2022-09-01GitHub advisory published (GHSA-xwf3-6rgv-939r)1 day after publication
- 2025-04-23CISA SSVC decision recorded966 days after publication
Exploit and advisory records
GitHub advisory GHSA-xwf3-6rgv-939r, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Go github.com/fluxcd/flux2 | from 0.21.0 before 0.32.0 | 0.32.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| fluxcd flux2 | from 0.21.0 before 0.32.0fixed in 0.32.0 | 0.32.0 |
References
- https://github.com/fluxcd/flux2/releases/tag/v0.32.0
- https://github.com/fluxcd/flux2/security/advisories/GHSA-xwf3-6rgv-939r
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2022-36035'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2022-36035'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2022-36035'curl 'https://api.contrastcyber.com/cve_products/CVE-2022-36035'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).