Skip to content
Fencer Vulns
high 8.6

CVE-2023-22736 json

argo-cd Controller reconciles apps outside configured namespaces when sharding is enabled

published 2023-01-25 3 y ago modified 2026-09-10 1 mo ago also GHSA-6p4m-hw2h-6gmw , GO-2023-1512 , EUVD-2023-0369

cvss
8.6
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.8%
EPSS 0.8% chance of exploitation in 30 days, percentile 56%
public exploits
0
none known

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.

Patch / fix

  • go github.com/argoproj/argo-cd/v2 2.5.8, 2.6.0-rc5
  • argoproj argo_cd 2.5.8

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2023-22736 updated cvss 8.5

argocd: Controller reconciles apps outside configured namespaces when sharding is enabled

  • Red Hat OpenShift GitOps 1.7 openshift-gitops-1/argocd-rhel8 v1.7.1-2
    fixed: vendor fix RHSA-2023:0467
  • Red Hat OpenShift GitOps 1.7 openshift-gitops-1/dex-rhel8 v1.7.1-2, openshift-gitops-1/gitops-rhel8 v1.7.1-2, openshift-gitops-1/kam-delivery-rhel8 v1.7.1-2, openshift-gitops-1/console-plugin-rhel8 v1.7.1-2, openshift-gitops-1/gitops-rhel8-operator v1.7.1-2, openshift-gitops-1/gitops-operator-bundle v1.7.1-2
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
19 mo ago

Exploit prediction

0.80% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 8.6 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
NVD 3.1 8.5 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
GitHub 3.1 8.5 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
go github.com/argoproj/argo-cd/v2
>=2.5.0-rc1, <2.5.8
>=2.6.0-rc4, <2.6.0-rc5
2.5.8
2.6.0-rc5
go github.com/argoproj/argo-cd
all versions
no fix listed

Affected products

  • argoproj argo-cd

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.