Skip to content
Heist/ feed
Back to feed
High

Lookup operations do not take into account wildcards in SpiceDB

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-21646
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 16:26 UTC · Revision 1

Source evidence

Lookup operations do not take into account wildcards in SpiceDB

core-osv · Original source

Published 11 Jan 2022, 21:50 UTC

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.

osv:CVE-2022-21646
Complete source record
{
  "id": "278083d5e0d0b9c41df9284af0534438e1a15972889811c4b292c5711543aba8",
  "url": "https://osv.dev/vulnerability/CVE-2022-21646",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Lookup operations do not take into account wildcards in SpiceDB",
    "summary": "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.",
    "evidence": "osv:CVE-2022-21646",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2022-21646",
      "aliases": [
        "CVE-2022-21646",
        "GHSA-7p8f-8hjm-wm92",
        "GO-2022-0295"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/authzed/spicedb",
              "type": "GIT",
              "events": [
                {
                  "introduced": "10616c73e4dfcebb282372ec8d4d878cf220ec94"
                },
                {
                  "fixed": "15bba2e2d2a4bda336a37a7fe8ef8a35028cd970"
                },
                {
                  "fixed": "d1b6877c2f24dbe631767355f1ae6f940ae03916"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "= 1.3.0"
                      },
                      {
                        "last_affected": "= 1.3.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "fixed": "15bba2e2d2a4bda336a37a7fe8ef8a35028cd970"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "d1b6877c2f24dbe631767355f1ae6f940ae03916"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v1.4.0"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.3.0",
            "= 1.3.0",
            "v1.3.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21646.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:20.911884644Z",
      "provider": "osv",
      "references": [
        "https://github.com/authzed/spicedb/releases/tag/v1.4.0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21646.json",
        "https://github.com/authzed/spicedb/security/advisories/GHSA-7p8f-8hjm-wm92",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-21646",
        "https://github.com/authzed/spicedb/issues/358",
        "https://github.com/authzed/spicedb/commit/15bba2e2d2a4bda336a37a7fe8ef8a35028cd970"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-155",
          "CWE-20"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21646.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-21646",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 487110,
  "published_at": "2022-01-11T21:50:10+00:00"
}