Argoproj argo-cd
Argo CD: A Jsonnet import can read files from the repo-server
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. From 0.9.0 until 3.3.15, 3.4.10, 3.5.4, and 3.6.0-rc2, the repo-server evaluates .jsonnet files with an importer that does not confine import, importstr, or importbin to the repository root. Absolute paths, parent-directory traversal, and repository symlinks can open any file readable by the repo-server, including /proc/self/environ, projected service-account tokens, mounted private keys, and repository credentials. Although generated Secrets are redacted, placing imported contents in a ConfigMap returns the data to the caller. Using importstr on a non-terminating device such as /dev/zero can exhaust repo-server memory. An attacker can commit a .jsonnet file to a Git repository used by an Application or upload the file through POST /api/v1/applications/manifestsWithFiles, also exposed by argocd app diff --local --server-side-generate. Directory applications evaluate every .jsonnet file in the application directory. The upload path requires only Application get permission on an existing directory Application, without Application update or sync permission or repository write access. This issue is fixed in versions 3.3.15, 3.4.10, 3.5.4, and 3.6.0-rc2.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.9.0, < 3.3.1
- >= 3.4.0-rc1, < 3.4.10
- >= 3.5.0-rc1, < 3.5.4
- >= 3.6.0-rc1, < 3.6.0-rc2
Fixed in 3.3.1, 3.4.10, 3.5.4, 3.6.0-rc2
Mitigation
Upgrade argo-cd to 3.3.1 or 3.4.10 or 3.5.4 or 3.6.0-rc2 or later.
References
- Vendor advisory github.com/argoproj/argo-cd/security/advisorie…
- Vendor advisory github.com/argoproj/argo-cd/security/advisorie…
- Vendor advisory github.com/argoproj/argo-cd/security/advisorie…
5 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.