CVE-2022-24877
Improper path handling in kustomization files allows path traversal
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.
How to fix CVE-2022-24877
To remediate CVE-2022-24877, upgrade the affected package to a fixed version below.
- —upgrade to 0.29.0 or later
- —upgrade to 0.24.0 or later
- —upgrade to 0.29.0 or later
- —upgrade to 0.29.0 or later
- —upgrade to 0.24.0 or later
- —upgrade to 0.24.0 or later
Is CVE-2022-24877 being exploited?
Low — EPSS is 0.6%, meaning exploitation activity has not been observed at scale.
Affected packages (6)
- from 0, < 0.29.0
- from 0, < 0.24.0
- from 0, < 0.29.0
- from 0, < 0.29.0
- from 0, < 0.24.0
- from 0, < 0.24.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |