Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1tNTRoLTV4NWYtNW02cs4AA0IM
SpiceDB's LookupResources may return partial results
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:
- Open an issue in SpiceDB
- Ask a question in the SpiceDB Discord
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1tNTRoLTV4NWYtNW02cs4AA0IM
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Low
Classification: General
Published: 10 months ago
Updated: 6 months ago
CVSS Score: 3.7
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Identifiers: GHSA-m54h-5x5f-5m6r, CVE-2023-35930
References:
- https://github.com/authzed/spicedb/security/advisories/GHSA-m54h-5x5f-5m6r
- https://nvd.nist.gov/vuln/detail/CVE-2023-35930
- https://github.com/authzed/spicedb/pull/1397
- https://github.com/authzed/spicedb/releases/tag/v1.22.2
- https://github.com/advisories/GHSA-m54h-5x5f-5m6r
Blast Radius: 4.6
Affected Packages
go:github.com/authzed/spicedb
Dependent packages: 9Dependent repositories: 17
Downloads:
Affected Version Ranges: = 1.22.0
Fixed in: 1.22.2
All affected versions: 1.22.0
All unaffected versions: 0.0.1, 0.0.2, 0.0.3, 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 1.7.1, 1.8.0, 1.9.0, 1.10.0, 1.11.0, 1.12.0, 1.13.0, 1.14.0, 1.14.1, 1.15.0, 1.16.0, 1.16.1, 1.16.2, 1.17.0, 1.18.0, 1.18.1, 1.19.0, 1.19.1, 1.20.0, 1.21.0, 1.22.1, 1.22.2, 1.23.0, 1.23.1, 1.24.0, 1.25.0, 1.26.0, 1.27.0, 1.28.0, 1.29.0, 1.29.1, 1.29.2, 1.29.4, 1.29.5, 1.30.0, 1.30.1, 1.31.0