6.3medium
Argo CD leaks repository credentials in user-facing error messages and in logs
- Severity
- 6.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.87% (higher than 59% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-mv6w-j4xc-qpfwBIT-ARGO-CD-2023-25163GO-2023-1548
Description
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. All versions of Argo CD starting with v2.6.0-rc1 have an output sanitization bug which leaks repository access credentials in error messages. These error messages are visible to the user, and they are logged. The error message is visible when a user attempts to create or update an Application via the Argo CD API (and therefor the UI or CLI). The user must have `applications, create` or `applications, update` RBAC access to reach the code which may produce the error. The user is not guaranteed to be able to trigger the error message. They may attempt to spam the API with requests to trigger a rate limit error from the upstream repository. If the user has `repositories, update` access, they may edit an existing repository to introduce a URL typo or otherwise force an error message. But if they have that level of access, they are probably intended to have access to the credentials anyway. A patch for this vulnerability has been released in version 2.6.1. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| argoproj argo-cd | >= 2.6.0-rc1, < 2.6.1 | CVE List |
| github.com/argoproj/argo-cd/v2 (Go) | from 2.6.0-rc1 before 2.6.1 | GitHub Advisory Database, Go Vulnerability Database |
| argoproj argo_cd | 2.6.0 | NVD |
| argo-cd (Bitnami) | from 2.6.0 up to 2.6.0, from 2.6.0-rc1 up to 2.6.0-rc1, from 2.6.0-rc2 up to 2.6.0-rc2, from 2.6.0-rc3 up to 2.6.0-rc3, from 2.6.0-rc4 up to 2.6.0-rc4, from 2.6.0-rc5 up to 2.6.0-rc5, from 2.6.0-rc6 up to 2.6.0-rc6, from 2.6.0-rc7 up to 2.6.0-rc7 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N |
| GitHub | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. All versions of Argo CD starting with v2.6.0-rc1 have an output sanitization bug which leaks repository access credentials in error messages. These error messages are visible to the user, and they are logged. The error message is visible when a user attempts to create or update an Application via the Argo CD API (and therefor the UI or CLI). The user must have `applications, create` or `applications, update` RBAC access to reach the code which may produce the error. The user is not guaranteed to be able to trigger the error message. They may attempt to spam the API with requests to trigger a rate limit error from the upstream repository. If the user has `repositories, update` access, they may edit an existing repository to introduce a URL typo or otherwise force an error message. But if they have that level of access, they are probably intended to have access to the credentials anyway. A patch for this vulnerability has been released in version 2.6.1. Users are advised to upgrade. There are no known workarounds for this vulnerability.
GitHub Advisory Database
Impact
All versions of Argo CD starting with v2.6.0-rc1 have an output sanitization bug which leaks repository access credentials in error messages. These error messages are visible to the user, and they are logged. The error message is visible when a user attempts to create or update an Application via the Argo CD API (and therefor the UI or CLI). The user must have applications, create or applications, update RBAC access to reach the code which may produce the error.
The user is not guaranteed to be able to trigger the error message. They may attempt to spam the API with requests to trigger a rate limit error from the upstream repository.
If the user has repositories, update access, they may edit an existing repository to introduce a URL typo or otherwise force an error message. But if they have that level of access, they are probably intended to have access to the credentials anyway.
Patches
A patch for this vulnerability has been released in the following Argo CD version:
- v2.6.1
Workarounds
The only way to completely resolve the issue is to upgrade.
Mitigations
To mitigate the issue, make sure that your repo credentials have only least necessary privileges. For example, the credentials should not have push access, and they should not have access to more resources than what Argo CD actually needs (for example, a whole GitHub org when only one repo is needed).
To further mitigate the impact of a leaked write-capable repo credential, you could enable commit signature verification. Even if someone could push a malicious commit, the commit would not by synced.
You should also enforce least privileges in Argo CD RBAC. Make sure users only have repositories, update, applications, update, or applications, create access if they absolutely need it.
References
- The problem was initially reported in a GitHub issue
- Argo CD RBAC configuration documentation
For more information
- Open an issue in the Argo CD issue tracker or discussions
- Join us on Slack in channel #argo-cd
Go Vulnerability Database
Argo CD has an output sanitization bug which leaks repository access credentials in error messages.
These error messages are visible to the user, and they are logged. The error message is visible when a user attempts to create or update an Application via the Argo CD API (and therefor the UI or CLI).
The user must have "applications, create" or "applications, update" RBAC access to reach the code which may produce the error. The user is not guaranteed to be able to trigger the error message. They may attempt to spam the API with requests to trigger a rate limit error from the upstream repository.
If the user has "repositories, update" access, they may edit an existing repository to introduce a URL typo or otherwise force an error message.
References
| https://github.com/argoproj/argo-cd/security/advisories/GHSA-mv6w-j4xc-qpfw | advisory, vendor-advisory, web | |
| https://github.com/argoproj/argo-cd/issues/12309 | issue-tracking, report, third-party-advisory, web | |
| https://github.com/argoproj/argo-cd/pull/12320 | fix, patch, web | |
| https://argo-cd.readthedocs.io/en/stable/operator-manual/rbac/ | not-applicable, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-25163 | advisory | |
| https://argo-cd.readthedocs.io/en/stable/operator-manual/rbac | web | |
| https://github.com/argoproj/argo-cd | package | |
| https://pkg.go.dev/vuln/GO-2023-1548 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-25163 changed 2025-03-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mv6w-j4xc-qpfw changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2023-1548 changed 2024-05-20 | CC-BY-4.0 |
| NVD | CVE-2023-25163 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-ARGO-CD-2023-25163 changed 2024-03-06 | Apache-2.0 |