SecurityContext

CVE-2022-36035: Flux CLI - Path Traversal

  • Cve: CVE-2022-36035
  • Name: Flux CLI - Path Traversal
  • 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.
  • Impact: Attackers can inject malicious configuration into Kubernetes clusters, potentially leading to unauthorized deployment or configuration tampering.
  • Remediation: Upgrade to the latest version of Flux CLI.
  • Vulnerability type: path_traversal
  • Vulnerability impact: data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.8
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00318
  • Epss percentile: 0.25208
  • Assignee: [email protected]
  • Published at: 2022-08-31T15:15:08Z
  • Age in days: 1546
  • Modified at: 2026-06-17T04:52:47Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-36035
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

References

UrlSourceTags
https://github.com/fluxcd/flux2/security/advisories/GHSA-xwf3-6rgv-939rnvdMitigation, Third Party Advisory
https://github.com/fluxcd/flux2/releases/tag/v0.32.0nvdRelease Notes, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
fluxcd:flux2>= 0.21.0, < 0.32.0nonvd/v1/products/fluxcd/flux2

Projects

RepositoryLink kindsIndexedUrl
fluxcd/flux2package, releases, security_advisoryyes/v1/repositories/fluxcd/flux2

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts