# CVE-2023-22736: argo-cd Controller reconciles apps outside configured namespaces when sharding is enabled

- Severity: High 8.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.83%, higher than 58% of CVEs (2026-12-01)
- Published: 2023-01-25T19:39:03.000Z
- Modified: 2026-09-10T03:49:50.887Z
- Also known as: GHSA-6p4m-hw2h-6gmw, GO-2023-1512
- Weaknesses: CWE-862
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- argoproj argo-cd: >= 2.5.0=rc1, < 2.5.8; = 2.6.0-rc4, < 2.6.0-rc5
- github.com/argoproj/argo-cd/v2 (Go): from 2.5.0-rc1 before 2.5.8; from 2.6.0-rc4 before 2.6.0-rc5
- github.com/argoproj/argo-cd (Go): all versions
- argoproj argo_cd: from 2.5.0 before 2.5.8; 2.6.0

## Every score

- GitHub_M: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/argoproj/argo-cd/security/advisories/GHSA-6p4m-hw2h-6gmw> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-22736> (advisory)
- <https://github.com/argoproj/argo-cd> (package)

## Sources

- CVE List: [CVE-2023-22736](https://www.cve.org/CVERecord?id=CVE-2023-22736), CVE Terms of Use, modified 2025-03-10
- GitHub Advisory Database: [GHSA-6p4m-hw2h-6gmw](https://github.com/advisories/GHSA-6p4m-hw2h-6gmw), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2023-1512](https://pkg.go.dev/vuln/GO-2023-1512), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2023-22736](https://nvd.nist.gov/vuln/detail/CVE-2023-22736), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-22736 · Whole record: https://cve.day/CVE-2023-22736.json · Rebuilt by cve.day 2026-11-25T22:58:21.726Z
