# CVE-2022-24878: GO-2022-0448 - Improper path handling in Kustomization files allows for denial of service in github.com/fluxcd/flux2

Source: https://junglewise.ai/threats/cve-2022-24878-improper-path-handling-in-kustomization-files-allows-for-denial  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-08-21  
License: CC BY 4.0 with a link back

CVE-2022-24878 · Severity: low · CVSS 3.1 · Published 2024-08-21

Improper path handling in Kustomization files allows for denial of service in github.com/fluxcd/flux2

Technologies: [github.com/fluxcd/flux2 (Go)](https://junglewise.ai/threats/technologies/github-com-fluxcd-flux2), [github.com/fluxcd/kustomize-controller (Go)](https://junglewise.ai/threats/technologies/github-com-fluxcd-kustomize-controller). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2022-24878 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-24878 being exploited in the wild.

**How severe is CVE-2022-24878?** Low severity, with a CVSS score of 3.1, published 21 August 2024.

**Which products and versions are affected?** github.com/fluxcd/flux2 (Go) SEMVER:introduced=0.19.0,fixed=0.29.0; github.com/fluxcd/kustomize-controller (Go) SEMVER:introduced=0.16.0,fixed=0.24.0.

**Is there a fix for CVE-2022-24878?** Yes. github.com/fluxcd/flux2 (Go): upgrade to 0.29.0 or later; github.com/fluxcd/kustomize-controller (Go): upgrade to 0.24.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-24878?** Check whether you run github.com/fluxcd/flux2 (Go) or github.com/fluxcd/kustomize-controller (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/fluxcd/flux2 (Go): upgrade to 0.29.0 or later

  ```sh
  go get github.com/fluxcd/flux2@v0.29.0
  ```

- github.com/fluxcd/kustomize-controller (Go): upgrade to 0.24.0 or later

  ```sh
  go get github.com/fluxcd/kustomize-controller@v0.24.0
  ```


## Affected products

- github.com/fluxcd/flux2 (Go) SEMVER:introduced=0.19.0,fixed=0.29.0
- github.com/fluxcd/kustomize-controller (Go) SEMVER:introduced=0.16.0,fixed=0.24.0

## Identifiers

- CVE-2022-24878
- GHSA-7pwf-jg34-hxwp
- GO-2022-0448

## Related threats

- [GO-2022-0960 - Flux CLI Workload Injection in github.com/fluxcd/flux2](https://junglewise.ai/threats/cve-2022-36035-flux-cli-workload-injection)
- [GO-2022-0447 - Improper path handling in kustomization files allows path traversal in github.com/fluxcd/flux2](https://junglewise.ai/threats/cve-2022-24877-improper-path-handling-in-kustomization-files-allows-path)
- [GO-2022-0260 - Privilege escalation to cluster admin on multi-tenant environments in github.com/fluxcd/kustomize-controller](https://junglewise.ai/threats/cve-2021-41254-privilege-escalation-to-cluster-admin-on-multi-tenant)
- [GO-2022-1071 - Denial of service in flux controllers in github.com/fluxcd modules](https://junglewise.ai/threats/cve-2022-39272-improper-use-of-metav1-duration-allows-for-denial-of-service)
- [Helm Controller denial of service](https://junglewise.ai/threats/cve-2022-36049-helm-controller-denial-of-service)
