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

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

May 20, 2022

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.

References

  • github.com/advisories/GHSA-7pwf-jg34-hxwp
  • github.com/fluxcd/flux2/security/advisories/GHSA-7pwf-jg34-hxwp
  • nvd.nist.gov/vuln/detail/CVE-2022-24878

Code Behaviors & Features

Detect and mitigate CVE-2022-24878 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 starting from 0.19.0 before 0.29.0

Fixed versions

  • v0.29.0

Solution

Upgrade to version 0.29.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/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/flux2/CVE-2022-24878.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:13 +0000.