CVE-2023-29193: Open Source Vulnerability in github.com/authzed/spicedb - SpiceDB binding metrics port can leak command-line flags

github.com/authzed/spicedb Updated 02 Oct 2025

Summary

13/04/2023
Yes i
High
8.1

CVE-2023-29193: SpiceDB binding metrics port to untrusted networks and can leak command-line flags. Affects github.com/authzed/spicedb versions < 1.19.1. Fixed in 1.19.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

github.com/authzed/spicedb is an open-source package written in Go that provides a gRPC API for accessing and managing data in a SpiceDB database. It includes a command-line tool, spicedb serve, which starts the SpiceDB server and exposes a metrics service on port 9090. The metrics service provides information about the server's performance and usage. The --grpc-preshared-key flag is used to protect the gRPC API from unauthorized access. However, the metrics service endpoint /debug/pprof/cmdline can inadvertently expose the command-line flags, including the --grpc-preshared-key, if the metrics port is exposed to an untrusted network.

Vulnerability Detail

The vulnerability in github.com/authzed/spicedb allows an attacker to obtain sensitive information, such as the --grpc-preshared-key, by accessing the /debug/pprof/cmdline endpoint of the metrics service. This can lead to unauthorized access to the gRPC API and potential compromise of the SpiceDB server. The impact of this vulnerability depends on the deployment configuration, as deployments following recommended best practices are not affected. However, users who expose the metrics port to an untrusted network and configure the --grpc-preshared-key via a command-line flag may be at risk.

How To Fix

Latest published version: v1.57.0 as of 23 Oct 2026

go get github.com/authzed/spicedb@v1.57.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.19.1

This is the first release that contains the fix.

go get github.com/authzed/spicedb@v1.19.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the latest version is not feasible, users can implement one of the following workarounds:

  • Configure the preshared key via an environment variable: SPICEDB_GRPC_PRESHARED_KEY=yoursecret spicedb serve
  • Reconfigure the --metrics-addr flag to bind to a trusted network: --metrics-addr=localhost:9090
  • Disable the metrics service via the flag: --metrics-enabled=false
  • Consider adopting one of the recommended deployment models, such as Authzed's managed services or the SpiceDB Operator.

Conclusion

The vulnerability in github.com/authzed/spicedb allows an attacker to obtain sensitive information by accessing the metrics service endpoint. To mitigate this vulnerability, users should upgrade to the latest version of github.com/authzed/spicedb and configure the --grpc-preshared-key via an environment variable. Alternatively, they can implement one of the provided workarounds. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/authzed/spicedb →

Share this vulnerability

FAQ

github.com/authzed/spicedb is an open-source package written in Go that provides a gRPC API for accessing and managing data in a SpiceDB database. It includes a command-line tool, spicedb serve, which starts the SpiceDB server and exposes a metrics service on port 9090.

The --grpc-preshared-key flag is used to protect the gRPC API of the SpiceDB server from unauthorized access. It is a sensitive piece of information that should be kept secret.

The vulnerability occurs when the metrics service endpoint /debug/pprof/cmdline is accessed. This endpoint inadvertently exposes the command-line flags, including the --grpc-preshared-key, if the metrics port is exposed to an untrusted network.

Users who expose the metrics port of github.com/authzed/spicedb to an untrusted network and configure the --grpc-preshared-key via a command-line flag may be affected by this vulnerability. Deployments following recommended best practices are not affected.

The vulnerability can be fixed by upgrading to version 1.19.1 or later of github.com/authzed/spicedb. It is also recommended to configure the --grpc-preshared-key via an environment variable instead of a command-line flag.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/authzed/spicedb.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Latest published version: v1.57.0 as of 23 Oct 2026

go get github.com/authzed/spicedb@v1.57.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.19.1

This is the first release that contains the fix.

go get github.com/authzed/spicedb@v1.19.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback