CVE-2023-25163: Argo CD leaks repository credentials in user-facing error messages and in logs

Published Feb 8, 2023
·
Updated

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

Other sources

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 Software

17 affected componentsFixes available
go/github.com/argoproj/argo-cd/v2>=2.6.0-rc1<2.6.1
2.6.1
linuxfoundation Argo Continuous Delivery Kubernetes=2.6.0
linuxfoundation Argo Continuous Delivery Kubernetes=2.6.0-rc1
linuxfoundation Argo Continuous Delivery Kubernetes=2.6.0-rc2
linuxfoundation Argo Continuous Delivery Kubernetes=2.6.0-rc3
linuxfoundation Argo Continuous Delivery Kubernetes=2.6.0-rc4
linuxfoundation Argo Continuous Delivery Kubernetes=2.6.0-rc5
linuxfoundation Argo Continuous Delivery Kubernetes=2.6.0-rc6
linuxfoundation Argo Continuous Delivery Kubernetes=2.6.0-rc7
argoproj Argo CD=2.6.0
argoproj Argo CD=2.6.0-rc1
argoproj Argo CD=2.6.0-rc2
argoproj Argo CD=2.6.0-rc3
argoproj Argo CD=2.6.0-rc4
argoproj Argo CD=2.6.0-rc5
argoproj Argo CD=2.6.0-rc6
argoproj Argo CD=2.6.0-rc7

Event History

Feb 8, 2023
CVE Published
via MITRE·08:44 PM
Data Sourced
via MITRE·08:44 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·10:37 PM

Frequently Asked Questions

1

What is the vulnerability ID of this vulnerability?

The vulnerability ID is CVE-2023-25163.

2

What is the severity of CVE-2023-25163?

The severity of CVE-2023-25163 is medium with a CVSS score of 6.5.

3

Which versions of Argo CD are affected by CVE-2023-25163?

All versions of Argo CD starting with v2.6.0-rc1 are affected by CVE-2023-25163.

4

How does CVE-2023-25163 affect Argo CD?

CVE-2023-25163 is an output sanitization bug that leaks repository access credentials in error messages, which are visible to the user and logged.

5

How can I fix CVE-2023-25163?

To fix CVE-2023-25163, upgrade to a fixed version of Argo CD or apply the recommended patches provided by the vendor.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203