GO-2023-1548

Source
https://pkg.go.dev/vuln/GO-2023-1548
Import Source
https://vuln.go.dev/ID/GO-2023-1548.json
JSON Data
https://api.test.osv.dev/v1/vulns/GO-2023-1548
Aliases
Published
2023-02-15T16:43:39Z
Modified
2024-05-20T16:03:47Z
Summary
Repository access credential leak in github.com/argoproj/argo-cd/v2
Details

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.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2023-1548"
}
References
Credits
    • James Callahan

Affected packages

Go / github.com/argoproj/argo-cd/v2

Package

Name
github.com/argoproj/argo-cd/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/argoproj/argo-cd/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.6.0-rc1
Fixed
2.6.1

Ecosystem specific

{
    "imports": [
        {
            "symbols": [
                "ValidateRepo",
                "validateRepo"
            ],
            "path": "github.com/argoproj/argo-cd/v2/util/argo"
        }
    ]
}