Information Exposure Affecting github.com/authzed/spicedb/pkg/cmd/server package, versions <1.19.1


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.14% (51st percentile)

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 Learn

Learn about Information Exposure vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMAUTHZEDSPICEDBPKGCMDSERVER-5422218
  • published14 Apr 2023
  • disclosed13 Apr 2023
  • creditamit-laish

Introduced: 13 Apr 2023

CVE-2023-29193  (opens in a new tab)
CWE-209  (opens in a new tab)

How to fix?

Upgrade github.com/authzed/spicedb/pkg/cmd/server to version 1.19.1 or higher.

Overview

github.com/authzed/spicedb/pkg/cmd/server is a Google Zanzibar-inspired fine-grained permissions database

Affected versions of this package are vulnerable to Information Exposure via the metrics service /debug/pprof/cmdline endpoint, if sensitive values - including passwords - are passed in via the --grpc-preshared-key flag.

NOTE: These deployments are not affected:

  • Authzed's SpiceDB Serverless

  • Authzed's SpiceDB Dedicated

  • SpiceDB Operator

  • SpiceDB configured via environment variables

Workaround

This vulnerability can be avoided by

  • Configuring the preshared key via an environment variable (e.g. SPICEDB_GRPC_PRESHARED_KEY=yoursecret spicedb serve)

  • Reconfiguring the --metrics-addr flag to bind to a trusted network (e.g. --metrics-addr=localhost:9090)

  • Disabling the metrics service via the flag (e.g. --metrics-enabled=false)

  • Adopting one of the recommended deployment models: Authzed's managed services or the SpiceDB Operator

References

CVSS Scores

version 3.1