Information Exposure Affecting github.com/cockroachdb/cockroach/pkg/security package, versions <22.2.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMCOCKROACHDBCOCKROACHPKGSECURITY-2826208
  • published26 May 2023
  • disclosed17 May 2022
  • creditknz

Introduced: 17 May 2022

CVE NOT AVAILABLE CWE-200  (opens in a new tab)

How to fix?

Upgrade github.com/cockroachdb/cockroach/pkg/security to version 22.2.0 or higher.

Overview

Affected versions of this package are vulnerable to Information Exposure such that it is possible to indirectly use environment variables when specifying the value of --certs-dir. For example, a malicious user that can indirectly control the flag can specify --certs-dir=$COCKROACH_LICENSE_KEY and discover the environmental variable value in the error message even if they don't have access to env vars otherwise.

CVSS Scores

version 3.1