argo-cd Controller reconciles apps outside configured namespaces when sharding is enabled
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-862.
Summary
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Versions starting with 2.5.0-rc1 and above, prior to 2.5.8, and version 2.6.0-rc4, are vulnerable to an authorization bypass bug which allows a malicious Argo CD user to deploy Applications outside the configured allowed namespaces. Reconciled Application namespaces are specified as a comma-delimited list of glob patterns. When sharding is enabled on the Application controller, it does not enforce that list of patterns when reconciling Applications. For example, if Application namespaces are configured to be argocd-*, the Application controller may reconcile an Application installed in a namespace called other, even though it does not start with argocd-. Reconciliation of the out-of-bounds Application is only triggered when the Application is updated, so the attacker must be able to cause an update operation on the Application resource. 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 apps-in-any-namespace feature is in beta as of this Security Advisory's publish date. The bug is also limited to Argo CD instances where sharding is enabled by increasing the `replicas` count for the Application controller. Finally, 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. A patch for this vulnerability has been released in versions 2.5.8 and 2.6.0-rc5. As a workaround, running only one replica of the Application controller will prevent exploitation of this bug. Making sure all AppProjects' sourceNamespaces are restricted within the confines of the configured Application namespaces will also prevent exploitation of this bug.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| argoproj | argo-cd | >= 2.5.0=rc1, < 2.5.8; = 2.6.0-rc4, < 2.6.0-rc5 | — | No fix listed | CNA |
| — | github.com/argoproj/argo-cd/v2 (Go) | 2.5.0-rc1 to before 2.5.8 | 2.5.8 | Patch available | GHSA-6p4m-hw2h-6gmw |
| — | github.com/argoproj/argo-cd/v2 (Go) | 2.6.0-rc4 to before 2.6.0-rc5 | 2.6.0-rc5 | Patch available | GHSA-6p4m-hw2h-6gmw |
- argo-cd Vendorargoproj Affected >= 2.5.0=rc1, < 2.5.8; = 2.6.0-rc4, < 2.6.0-rc5 Fixed in — No fix listed CNA
- github.com/argoproj/argo-cd/v2 (Go) Vendor— Affected 2.5.0-rc1 to before 2.5.8 Fixed in 2.5.8 Patch available GHSA-6p4m-hw2h-6gmw
- github.com/argoproj/argo-cd/v2 (Go) Vendor— Affected 2.6.0-rc4 to before 2.6.0-rc5 Fixed in 2.6.0-rc5 Patch available GHSA-6p4m-hw2h-6gmw
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:argoproj:argo_cd:*:*:*:*:*:*:*:* | 2.5.0 to before 2.5.8 | Vulnerable | argoproj |
| cpe:2.3:a:argoproj:argo_cd:2.6.0:rc1:*:*:*:*:*:* | 2.6.0 rc1 | Vulnerable | argoproj |
| cpe:2.3:a:argoproj:argo_cd:2.6.0:rc2:*:*:*:*:*:* | 2.6.0 rc2 | Vulnerable | argoproj |
| cpe:2.3:a:argoproj:argo_cd:2.6.0:rc3:*:*:*:*:*:* | 2.6.0 rc3 | Vulnerable | argoproj |
| cpe:2.3:a:argoproj:argo_cd:2.6.0:rc4:*:*:*:*:*:* | 2.6.0 rc4 | Vulnerable | argoproj |
- cpe:2.3:a:argoproj:argo_cd:*:*:*:*:*:*:*:* Versions 2.5.0 to before 2.5.8 Vulnerable ·argoproj
- cpe:2.3:a:argoproj:argo_cd:2.6.0:rc1:*:*:*:*:*:* Versions 2.6.0 rc1 Vulnerable ·argoproj
- cpe:2.3:a:argoproj:argo_cd:2.6.0:rc2:*:*:*:*:*:* Versions 2.6.0 rc2 Vulnerable ·argoproj
- cpe:2.3:a:argoproj:argo_cd:2.6.0:rc3:*:*:*:*:*:* Versions 2.6.0 rc3 Vulnerable ·argoproj
- cpe:2.3:a:argoproj:argo_cd:2.6.0:rc4:*:*:*:*:*:* Versions 2.6.0 rc4 Vulnerable ·argoproj
Remediation
- Fix · GHSA-6p4m-hw2h-6gmw github.com/argoproj/argo-cd/v2 (Go) Fixed in 2.5.8 Advisory →
- Fix · GHSA-6p4m-hw2h-6gmw github.com/argoproj/argo-cd/v2 (Go) Fixed in 2.6.0-rc5 Advisory →
Red Hat 1 advisory
- RHSA-2023:0467 Released 2023-01-25 · Red Hat rating ImportantRed Hat OpenShift GitOps security update
- Red Hat OpenShift GitOps 1.7 openshift-gitops-1/argocd-rhel8
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift GitOps 1.7 | Fixed | RHSA-2023:0467 |
Not affected: 1 product
- Red Hat OpenShift GitOps 1.7
Timeline
- 2026-10-02 Threatist record created from CVE-2023-22736
- 2026-10-03 Alias added: GHSA-6p4m-hw2h-6gmw
References
More argoproj Argo Cd vulnerabilities
- TI-2024-14377 Argo CD vulnerable to Bypassing of Brute Force Protection via Application Crash and In-Memory Data Loss CVSS 3.1CRITICAL 9.8
- TI-2024-14383 Argo CD vulnerable to Bypassing of Rate Limit and Brute Force Protection Using Cache Overflow CVSS 3.1CRITICAL 9.1
- TI-2026-31086 ArgoCD ServerSideDiff is vulnerable to Kubernetes Secret Extraction CVSS 3.1CRITICAL 9.6
- TI-2023-20919 Cluster secret might leak in cluster details page in Argo CD CVSS 3.1CRITICAL 9.9
- TI-2024-21088 ArgoCD Vulnerable to Use of Risky or Missing Cryptographic Algorithms in Redis Cache CVSS 3.1CRITICAL 9.1
- TI-2026-33475 Argo CD: Stored XSS in application link annotations enables developer-to-admin privilege escalation CVSS 3.1HIGH 8.7
Sources
- CVE-2023-22736 · CVE Program
- CVE-2023-22736 · NVD
- FIRST EPSS
- GHSA-6p4m-hw2h-6gmw · GitHub Advisory Database · CC BY 4.0
- CVE-2023-22736 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences