Live threats

All CVEs / Fluxcd

CVE-2022-36035Fluxcd Flux2

High 7.8

Priority
47
CVSS 3.1
7.8
EPSS
0.4%
probability of exploitation in 30 days · percentile 26
Auth required
Yes
Published
Aug 31, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Flux2.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/fluxcd/flux2 ≥ 0.21.0 < 0.32.0 0.32.0 go get github.com/fluxcd/flux2@v0.32.0
Go github.com/fluxcd/flux2 ≥ 0.21.0 < 0.32.0 0.32.0 go get github.com/fluxcd/flux2@v0.32.0

Per OSV / GitHub Advisories (GHSA-xwf3-6rgv-939r, GO-2022-0960). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
fluxcdflux2≥ 0.21.0 < 0.32.0

Official sources

References

Links published by the sources. Open them with care.