CVE-2022-21646
published 2022-01-11CVE-2022-21646: SpiceDB is a database system for managing security-critical application permissions. Any user making use of a wildcard relationship under the right hand branch…
PriorityP345high8.1CVSS 3.1
AVNACLPRLUINSUCHIHAN
EPSS
1.47%
70.8th percentile
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.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| authzed | spicedb | — | — |
| authzed | spicedb | — | — |
| github.com | authzed_spicedb | >= 1.3.0 < 1.4.0 | 1.4.0 |
CVSS provenance
nvdv3.18.1HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
nvdv2.05.5MEDIUMAV:N/AC:L/Au:S/C:P/I:P/A:N
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Lookup operations do not take into account wildcards in SpiceDB in github.com/authzed/spicedb
osv·2024-08-21
CVE-2022-21646 Lookup operations do not take into account wildcards in SpiceDB in github.com/authzed/spicedb
Lookup operations do not take into account wildcards in SpiceDB in github.com/authzed/spicedb
Lookup operations do not take into account wildcards in SpiceDB in github.com/authzed/spicedb
GHSA
Lookup operations do not take into account wildcards in SpiceDB
ghsa·2022-01-13
CVE-2022-21646 [HIGH] CWE-155 Lookup operations do not take into account wildcards in SpiceDB
Lookup operations do not take into account wildcards in SpiceDB
### Impact
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.
For example, given schema:
```zed
definition user {}
definition resource {
relation viewer: user
relation banned: user | user:*
permission view = viewer - banned
}
```
If `user:*` is placed into the `banned` relation for a particular resource, `view` should return false for *all* resources. in `v1.3.0`, the wildcard is ignored entirely in lookup's dispatch, resulting in the `banned` wildcard
OSV
Lookup operations do not take into account wildcards in SpiceDB
osv·2022-01-13
CVE-2022-21646 [HIGH] Lookup operations do not take into account wildcards in SpiceDB
Lookup operations do not take into account wildcards in SpiceDB
### Impact
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.
For example, given schema:
```zed
definition user {}
definition resource {
relation viewer: user
relation banned: user | user:*
permission view = viewer - banned
}
```
If `user:*` is placed into the `banned` relation for a particular resource, `view` should return false for *all* resources. in `v1.3.0`, the wildcard is ignored entirely in lookup's dispatch, resulting in the `banned` wildcard
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/authzed/spicedb/commit/15bba2e2d2a4bda336a37a7fe8ef8a35028cd970https://github.com/authzed/spicedb/issues/358https://github.com/authzed/spicedb/releases/tag/v1.4.0https://github.com/authzed/spicedb/security/advisories/GHSA-7p8f-8hjm-wm92https://github.com/authzed/spicedb/commit/15bba2e2d2a4bda336a37a7fe8ef8a35028cd970https://github.com/authzed/spicedb/issues/358https://github.com/authzed/spicedb/releases/tag/v1.4.0https://github.com/authzed/spicedb/security/advisories/GHSA-7p8f-8hjm-wm92
2022-01-11
Published