CVE-2023-35930 LookupResources may return partial results in spicedb
Attackers can bypass authorization checks by exploiting partial results in LookupResources, allowing unauthorized access to resources.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-35930?
CVE-2023-35930 is a low-severity vulnerability in authzed spicedb, published on 26 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
SpiceDB is an open source, Google Zanzibar-inspired, database system for creating and managing security-critical application permissions. Any user making a negative authorization decision based on the results of a `LookupResources` request with 1.22.0 is affected. For example, using `LookupResources` to find a list of resources to allow access to be okay: some subjects that should have access to a resource may not. But if using `LookupResources` to find a list of banned resources instead, then some users that shouldn't have access may. Generally, `LookupResources` is not and should not be to gate access in this way - that's what the `Check` API is for. Additionally, version 1.22.0 has included a warning about this bug since its initial release. Users are advised to upgrade to version 1.22.2. Users unable to upgrade should avoid using `LookupResources` for negative authorization decisions.
Weakness: CWE-913
Which versions are affected by CVE-2023-35930?
3 open source packages ship an affected version, including github.com/authzed/spicedb. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/authzed/spicedb Go | From 1.22.0 | 1.22.2 |
github.com/authzed/spicedb Go | From 1.22.0 | 1.22.2 |
github.com/authzed/spicedb Go | From 1.22.0 | 1.22.2 |
Products include Authzed Spicedb.
How do I fix CVE-2023-35930?
Upgrade github.com/authzed/spicedb to 1.22.2 or later.
Is CVE-2023-35930 being exploited?
There is no known exploitation of CVE-2023-35930 in the wild and no public exploit code.
Other vulnerabilities in authzed spicedb
- CVE-2023-29193 SpiceDB binding metrics port to untrusted networks and can leak command-line flags
- CVE-2022-21646 Lookup operations do not take into account wildcards in SpiceDB
- CVE-2024-27101 Integer overflow in chunking helper causes dispatching to miss elements or panic
- CVE-2026-40091 SpiceDB: SPICEDB_DATASTORE_CONN_URI is leaked on startup logs
- CVE-2023-46255 `SPICEDB_DATASTORE_CONN_URI` is leaked when URI cannot be parsed
Sources
Also known as GHSA-m54h-5x5f-5m6r, GO-2023-1871.