Vulnerability · Published May 6, 2022 · Assigned by GitHub_M

CVE-2022-24877Improper path handling in kustomization files allows path traversal

Critical 9.9

In plain English

A critical-severity path traversal in flux2 from fluxcd. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 68% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.9Critical
Exploit odds (30 days)1.2%top 32.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Flux is an open and extensible continuous delivery solution for Kubernetes. Path Traversal in the kustomize-controller via a malicious `kustomization.yaml` allows an attacker to expose sensitive data from the controller’s pod filesystem and possibly privilege escalation in multi-tenancy deployments. Workarounds include automated tooling in the user's CI/CD pipeline to validate `kustomization.yaml` files conform with specific policies. This vulnerability is fixed in kustomize-controller v0.24.0 and included in flux2 v0.29.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/fluxcd/flux20.29.0GHSA-j77r-2fxf-5jrw
Gogithub.com/fluxcd/flux20.29.0GO-2022-0447
Gogithub.com/fluxcd/kustomize-controller0.24.0GHSA-j77r-2fxf-5jrw
Gogithub.com/fluxcd/kustomize-controller0.24.0GO-2022-0447

Affected products (as reported)

VendorProductVersions
fluxcd flux2 flux2 < v0.29.0kustomize-controller < v0.24.0

Weakness: CWE-22, CWE-36 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

References