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

Medium 6.3 Published Updated

Attackers with application creation or update permissions can view repository credentials leaked in error messages and logs.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-25163?

CVE-2023-25163 is a medium-severity vulnerability in Argoproj Argo Cd, published on 8 Feb 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-532

Which versions are affected by CVE-2023-25163?

4 open source packages ship an affected version, including github.com/argoproj/argo-cd/v2 and argo-cd. It affects 1 product.

PackageAffectedFixed in
github.com/argoproj/argo-cd/v2 GoFrom 2.6.0-rc12.6.1
github.com/argoproj/argo-cd/v2 GoFrom 2.6.0-rc12.6.1
github.com/argoproj/argo-cd/v2 GoFrom 2.6.0-rc12.6.1
argo-cd BitnamiFrom 2.6.0 to 2.6.0None

Products include Argoproj Argo Cd.

How do I fix CVE-2023-25163?

Upgrade github.com/argoproj/argo-cd/v2 to 2.6.1 or later.

Is CVE-2023-25163 being exploited?

There is no known exploitation of CVE-2023-25163 in the wild and no public exploit code.

All Argoproj Argo Cd vulnerabilities

Sources

Also known as BIT-argo-cd-2023-25163, GHSA-mv6w-j4xc-qpfw, GO-2023-1548.

Is CVE-2023-25163 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free