Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/fluxcd/kustomize-controller
  4. ›
  5. CVE-2022-24877

CVE-2022-24877: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

May 6, 2022 (updated February 8, 2024)

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.

References

  • github.com/advisories/GHSA-j77r-2fxf-5jrw
  • github.com/fluxcd/flux2/security/advisories/GHSA-j77r-2fxf-5jrw
  • nvd.nist.gov/vuln/detail/CVE-2022-24877

Code Behaviors & Features

Detect and mitigate CVE-2022-24877 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.24.0

Fixed versions

  • v0.24.0

Solution

Upgrade to version 0.24.0 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/fluxcd/kustomize-controller/CVE-2022-24877.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:59 +0000.