{"id":"CVE-2022-21646","published":"2022-01-11T21:50:10Z","modified":"2025-04-23T19:13:28Z","title":"Lookup operations do not take into account wildcards in SpiceDB","vendor":"authzed","product":"spicedb","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0132,"percentile":0.71567,"provenance":"source"},"cwes":[{"id":"CWE-155","name":"Improper Neutralization of Wildcards or Matching Symbols"},{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/authzed/spicedb/security/advisories/GHSA-7p8f-8hjm-wm92","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/authzed/spicedb/issues/358","tags":["x_refsource_MISC"]},{"url":"https://github.com/authzed/spicedb/commit/15bba2e2d2a4bda336a37a7fe8ef8a35028cd970","tags":["x_refsource_MISC"]},{"url":"https://github.com/authzed/spicedb/releases/tag/v1.4.0","tags":["x_refsource_MISC"]}],"priority":{"score":20.0,"factors":[{"name":"EPSS percentile","points":14.31},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"authzed","affectedVersions":[{"vendor":"authzed","product":"spicedb","versions":["= 1.3.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:56:58.194304Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/authzed/spicedb","vulnerableRanges":[">=1.3.0, <1.4.0"],"patched":["1.4.0"],"from":["GHSA-7p8f-8hjm-wm92","GO-2022-0295"],"provenance":"source"}],"summary":{"text":"Lookup and LookupResources operations in SpiceDB, the permissions database system, fail to account for wildcard relationships placed on the right side of an intersection or within an exclusion, so resources that should be denied are reported as accessible. An attacker with low-privilege authenticated access over the network can exploit this without any user interaction, provided the affected schema uses wildcards in those positions and the vulnerable version is in use (the fix is in 1.4.0; the workaround is to avoid wildcards on the right side of intersections and inside exclusions).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:28Z"},"euvd":{"id":"EUVD-2022-0503","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-21646","published":"2022-01-11","fixed":"1.4.0","kev":false},{"cve":"CVE-2023-29193","published":"2023-04-14","fixed":"1.19.1","kev":false,"link":{"from":"CVE-2022-21646","to":"CVE-2023-29193","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/authzed/spicedb","fromFixed":"1.4.0","toFixed":"1.19.1","daysApart":458}]}},{"cve":"CVE-2023-35930","published":"2023-06-26","fixed":"1.22.2","kev":false},{"cve":"CVE-2023-46255","published":"2023-10-31","fixed":"1.27.0-rc1","kev":false}],"package":"Go:github.com/authzed/spicedb"}}