CVE-2023-35930 LookupResources may return partial results in spicedb

Low 3.7 Published Updated

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.

PackageAffectedFixed in
github.com/authzed/spicedb GoFrom 1.22.01.22.2
github.com/authzed/spicedb GoFrom 1.22.01.22.2
github.com/authzed/spicedb GoFrom 1.22.01.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.

Sources

Also known as GHSA-m54h-5x5f-5m6r, GO-2023-1871.

Is CVE-2023-35930 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free