Lucene search

K
githubGitHub Advisory DatabaseGHSA-M54H-5X5F-5M6R
HistoryJun 28, 2023 - 10:48 p.m.

SpiceDB's LookupResources may return partial results

2023-06-2822:48:50
CWE-913
GitHub Advisory Database
github.com
14
spicedb
lookupresources
authorization
bug
patch
version 1.22.0
issue
warning
negative decision
check api
workaround
v1.22.2
github
advisory

CVSS3

5.3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

EPSS

0.001

Percentile

32.8%

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:

Affected configurations

Vulners
Node
authzedspicedbMatch1.22.0
VendorProductVersionCPE
authzedspicedb1.22.0cpe:2.3:a:authzed:spicedb:1.22.0:*:*:*:*:*:*:*

CVSS3

5.3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

EPSS

0.001

Percentile

32.8%

Related for GHSA-M54H-5X5F-5M6R