Authorization Bypass Affecting github.com/argoproj/argo-cd/v2/util/session package, versions >=2.5.0-rc1 <2.5.8 >=2.6.0-rc4 <2.6.0-rc5
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-GOLANG-GITHUBCOMARGOPROJARGOCDV2UTILSESSION-3248489
- published 26 Jan 2023
- disclosed 25 Jan 2023
- credit ChangZhuo Chen (@czchen)
Introduced: 25 Jan 2023
CVE-2023-22736 Open this link in a new tabHow to fix?
Upgrade github.com/argoproj/argo-cd/v2/util/session
to version 2.5.8, 2.6.0-rc5 or higher.
Overview
github.com/argoproj/argo-cd/v2/util/session is a declarative, GitOps continuous delivery tool for Kubernetes.
Affected versions of this package are vulnerable to Authorization Bypass which allows a malicious Argo CD user to deploy Applications outside the configured allowed namespaces.
Note:
This bug only applies to users who have explicitly enabled the "apps-in-any-namespace" feature by setting
application.namespaces
in the argocd-cmd-params-cm ConfigMap or otherwise setting the--application-namespaces
flags on the Application controller and API server components.The vulnerability is limited to Argo CD instances where sharding is enabled by increasing the
replicas
count for the Application controller.The AppProjects'
sourceNamespaces
field acts as a secondary check against this exploit. To cause reconciliation of an Application in an out-of-bounds namespace, an AppProject must be available which permits Applications in the out-of-bounds namespace.
Workarounds
Users that are not able to update to a fixed version are advised to run only one replica of the Application controller. It will prevent the exploitation of this issue.
Also, making sure all AppProjects' sourceNamespaces
are restricted within the confines of the configured Application namespaces will also prevent exploitation of this bug.