Vulnerability · Published May 6, 2022 · Assigned by GitHub_M

CVE-2022-24878Improper path handling in Kustomization files allows for denial of service

High 7.7

In plain English

A high-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.0% (higher than 63% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.7High
Exploit odds (30 days)1.0%top 36.5% 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 cause a Denial of Service at the controller level. 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. Users are recommended to upgrade.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/fluxcd/flux20.29.0GHSA-7pwf-jg34-hxwp
Gogithub.com/fluxcd/flux20.29.0GO-2022-0448
Gogithub.com/fluxcd/kustomize-controller0.24.0GHSA-7pwf-jg34-hxwp
Gogithub.com/fluxcd/kustomize-controller0.24.0GO-2022-0448

Affected products (as reported)

VendorProductVersions
fluxcd flux2 flux2 < v0.28.5, >= v0.19.0kustomize < v0.29.0, >= v0.16.0

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

References