argo-cd: Argo CD: A Kustomize Helm config home can run commands in the repo-server
What fixes it
- 3.3.15github.com/argoproj/argo-cd/v3, goGitHub
go get github.com/argoproj/argo-cd/v3@v3.3.15 - 3.4.10github.com/argoproj/argo-cd/v3, goGitHub
go get github.com/argoproj/argo-cd/v3@v3.4.10 - 3.5.4github.com/argoproj/argo-cd/v3, goGitHub
go get github.com/argoproj/argo-cd/v3@v3.5.4 - 3.6.0-rc2github.com/argoproj/argo-cd/v3, goGitHub
go get github.com/argoproj/argo-cd/v3@v3.6.0-rc2 - 3.3.15github.com/argoproj/argo-cd/v3, GoOSV
go get github.com/argoproj/argo-cd/v3@v3.3.15 - 3.4.10github.com/argoproj/argo-cd/v3, GoOSV
go get github.com/argoproj/argo-cd/v3@v3.4.10
Show all 8 fixed versions
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. From 2.1.0 until 3.3.15, 3.4.10, 3.5.4, and 3.6.0-rc2, when an operator has enabled --enable-helm for kustomize build, helmGlobals.configHome can point Helm's config and data directories at a repository-controlled location. Helm automatically loads a downloader plugin from <configHome>/.data/plugins without a separate plugin-install step and executes its program inside argocd-repo-server when a helmCharts repository URL uses the plugin's protocol. The command runs as the repo-server user and can read repository credentials and other process-accessible data. An attacker can commit the Kustomization and plugin to a Git repository that an Application builds or upload the files through POST /api/v1/applications/manifestsWithFiles, also exposed by argocd app diff --local --server-side-generate. The upload path requires only Application get permission on an existing Application, without Application update or sync permission or repository write access. Both delivery paths require prior operator enablement of --enable-helm; deployments that do not enable it are not affected. Kustomize 4.1.0 first passed helmGlobals.configHome through to Helm. This issue is fixed in versions 3.3.15, 3.4.10, 3.5.4, and 3.6.0-rc2.
Text from CVE List
Affected versions 12
- argo-cdaffected: >= 2.1.0, < 3.3.15CVE List
- argo-cdaffected: >= 3.4.0-rc1, < 3.4.10CVE List
- argo-cdaffected: >= 3.5.0-rc1, < 3.5.4CVE List
- argo-cdaffected: >= 3.6.0-rc1, < 3.6.0-rc2CVE List
- github.com/argoproj/argo-cd/v2, go>= 2.1.0GitHub
- github.com/argoproj/argo-cd/v3, go>= 3.0.0, < 3.3.15 || >= 3.4.0, < 3.4.10 || >= 3.5.0, < 3.5.4 || = 3.6.0-rc1GitHub
- github.com/argoproj/argo-cd/v2, Gofrom 2.11.0, through 2.14.21OSV
- github.com/argoproj/argo-cd/v3, Gofrom 3.0.0, fixed in 3.3.15OSV
- github.com/argoproj/argo-cd/v3, Gofrom 3.4.0, fixed in 3.4.10OSV
- github.com/argoproj/argo-cd/v3, Gofrom 3.5.0, fixed in 3.5.4OSV
- github.com/argoproj/argo-cd/v3, Gofrom 3.6.0-rc1, fixed in 3.6.0-rc2OSV
- github.com/argoproj/argo-cd/v3, Go3.6.0-rc1OSV
References 10
- github.com/argoproj/argo-cd/commit/b6d5c23bce2f8a46c52975ba438a3b93d242d96cFixvia CVE List
- github.com/argoproj/argo-cd/releases/tag/v3.3.15Fixvia CVE List
- github.com/argoproj/argo-cd/releases/tag/v3.4.10Fixvia CVE List
- github.com/argoproj/argo-cd/releases/tag/v3.5.4Fixvia CVE List
- github.com/argoproj/argo-cd/releases/tag/v3.6.0-rc2Fixvia CVE List
- github.com/argoproj/argo-cd/security/advisories/GHSA-fw5c-w8rc-j7fxAdvisoryvia CVE List
- github.com/argoproj/argo-cd/security/advisories/GHSA-j6cw-g6p4-7hchAdvisoryvia CVE List
- github.com/argoproj/argo-cd/pull/6059Referencevia CVE List
- github.com/kubernetes-sigs/kustomize/pull/3784Referencevia CVE List
- argo-cd.readthedocs.io/en/stable/user-guide/kustomize/#kustomizing-helm-chartsReferencevia CVE List