Advisory

GHSA-7pwf-jg34-hxwp

Also known as: BIT-flux-2022-24878, BIT-kustomize-2022-24878, CVE-2022-24878, GO-2022-0448

Summary

Improper path handling in Kustomization files allows for denial of service

Details

The kustomize-controller enables the use of Kustomize’s functionality when applying Kubernetes declarative state onto a cluster. A malicious user can use a specially crafted kustomization.yaml to cause Denial of Service at controller level.

In multi-tenancy deployments this can lead to multiple tenants not being able to apply their Kustomizations until the malicious kustomization.yaml is removed and the controller restarted.

Impact

Within the affected versions, users with write access to a Flux source are able to craft a malicious kustomization.yaml file which causes the controller to enter an endless loop.

Patches

This vulnerability was fixed in kustomize-controller v0.24.0 and included in flux2 v0.29.0 released on 2022-04-20. The changes introduce better handling of Kustomization files blocking references that could lead to endless loops.

Credits

The Flux engineering team found and patched this vulnerability.

For more information

If you have any questions or comments about this advisory please open an issue in the flux2 repository.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-20 16:58 UTC
Modified
2025-12-02 18:27 UTC

Affected packages and fixes

github.com/fluxcd/kustomize-controller

Go · All systems

Affected

  • introduced 0.16.0, fixed 0.24.0 (semver)

Fixed versions

0.24.0

Fix

github.com/fluxcd/flux2

Go · All systems

Affected

  • introduced 0.19.0, fixed 0.29.0 (semver)

Fixed versions

0.29.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences