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

- Severity: Critical 9.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.19%, higher than 68% of CVEs (2026-12-01)
- Published: 2022-05-04T18:04:07.000Z
- Modified: 2026-09-10T16:01:41.509Z
- Also known as: GHSA-j77r-2fxf-5jrw, BIT-FLUX-2022-24877, BIT-KUSTOMIZE-2022-24877, GO-2022-0447
- Related: CGA-g8qj-2985-6m93
- Weaknesses: CWE-22, CWE-36
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- fluxcd flux2: flux2 < v0.29.0; kustomize-controller < v0.24.0; before 0.29.0
- github.com/fluxcd/kustomize-controller (Go): before 0.24.0
- github.com/fluxcd/flux2 (Go): before 0.29.0
- fluxcd kustomize-controller: before 0.24.0
- flux (Bitnami): before 0.29.0
- kustomize (Bitnami): before 0.24.0

## Every score

- GitHub_M: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/fluxcd/flux2/security/advisories/GHSA-j77r-2fxf-5jrw> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24877> (advisory, web)
- <https://github.com/fluxcd/kustomize-controller/commit/f4528fb25d611da94e491346bea056d5c5c3611f> (fix, web)
- <https://github.com/fluxcd/pkg/commit/0ec014baf417fd3879d366a45503a548b9267d2a> (web)

## Sources

- CVE List: [CVE-2022-24877](https://www.cve.org/CVERecord?id=CVE-2022-24877), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-j77r-2fxf-5jrw](https://github.com/advisories/GHSA-j77r-2fxf-5jrw), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2022-0447](https://pkg.go.dev/vuln/GO-2022-0447), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2022-24877](https://nvd.nist.gov/vuln/detail/CVE-2022-24877), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-FLUX-2022-24877](https://osv.dev/vulnerability/BIT-FLUX-2022-24877), Apache-2.0, modified 2026-09-10
- Bitnami Vulnerability Database: [BIT-KUSTOMIZE-2022-24877](https://osv.dev/vulnerability/BIT-KUSTOMIZE-2022-24877), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2022-24877 · Whole record: https://cve.day/CVE-2022-24877.json · Rebuilt by cve.day 2026-11-25T22:58:11.489Z
