Skip to content

SpiceDB's LookupResources may return partial results

Low severity GitHub Reviewed Published Jun 26, 2023 in authzed/spicedb • Updated Nov 12, 2023

Package

gomod github.com/authzed/spicedb (Go)

Affected versions

= 1.22.0

Patched versions

1.22.2

Description

Impact

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 used 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.

Workarounds

Avoid using LookupResources for negative authorization decisions if using 1.22.0.

Patches

The only affected release is v1.22.0, and it is patched in v1.22.2 (there is no v1.22.1 release, though there is a git tag).

References

For more information

If you have any questions or comments about this advisory:

References

@ecordell ecordell published to authzed/spicedb Jun 26, 2023
Published by the National Vulnerability Database Jun 26, 2023
Published to the GitHub Advisory Database Jun 28, 2023
Reviewed Jun 28, 2023
Last updated Nov 12, 2023

Severity

Low

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

EPSS score

0.075%
(34th percentile)

Weaknesses

CVE ID

CVE-2023-35930

GHSA ID

GHSA-m54h-5x5f-5m6r

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.