Context Missing Vulnerability in SpiceDB: LookupResources2 Caveat Issue

github.com/authzed/spicedb Updated 02 Oct 2025

Summary

15/10/2024
Yes i
Low
2.0

CVE-2024-48909: SpiceDB calls to LookupResources using LookupResources2 with caveats may return context is missing when it is not in github.com/authzed/spicedb. Affects github.com/authzed/spicedb versions >= 1.35.0, < 1.37.1. Fixed in 1.37.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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

SpiceDB is an open-source database designed for managing permissions and authorizations in applications. It allows developers to define and enforce complex access control rules using a rich set of features. However, a recent vulnerability has been identified in the LookupResources function, specifically when using the LookupResources2 method with caveats. This issue can lead to unexpected behavior in applications relying on SpiceDB for access control.

Vulnerability Detail

The vulnerability arises from SpiceDB's implementation of the LookupResources2 function, which may return a 'context is missing' error even when the context is present. This can occur when the function is called with caveats in versions prior to 1.37.1. The ramifications of this issue include potential access control failures, where users may be incorrectly denied or granted permissions, leading to security risks in applications that depend on accurate authorization checks.

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

This is the first release that contains the fix.

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

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

Workaround

As a temporary workaround, you can avoid using the LookupResources2 function with caveats until you are able to update to the patched version. Alternatively, ensure that your application handles the 'context is missing' error gracefully, possibly by implementing fallback logic or logging the error for further investigation.

Conclusion

In summary, the vulnerability in SpiceDB's LookupResources2 function can lead to incorrect access control decisions due to misleading error messages. It is crucial for developers using this package to update to version 1.37.1 or later to mitigate the risk. Additionally, utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

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

Share this vulnerability

FAQ

The vulnerability involves the LookupResources2 function returning a misleading error message regarding context, which can affect access control decisions.

Versions of SpiceDB from 1.35.0 up to, but not including, 1.37.1 are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If you cannot update immediately, consider implementing a workaround by avoiding the use of LookupResources2 with caveats and handling errors appropriately.

More information can be found in the vulnerability database at https://pkg.go.dev/vuln/GO-2024-3200.

Related vulnerabilities

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

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

This is the first release that contains the fix.

go get github.com/authzed/spicedb@v1.37.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