Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-jhg6-6qrx-38mr

Опубликовано: 18 сент. 2024
Источник: github
Github: Прошло ревью
CVSS4: 6.3
CVSS3: 3.7

Описание

SpiceDB having multiple caveats on resources of the same type may improperly result in no permission

Background

Multiple caveats over the same indirect subject type on the same relation can result in no permission being returned when permission is expected

For example, given this schema:

definition user {} caveat somecaveat(somefield int) { somefield == 42 } definition group { relation member: user } definition resource { relation viewer: group#member with somecaveat permission view = folder->view }

If the resource has multiple groups, and each group is caveated, it is possible for the returned permission to be "no permission" when permission is expected.

Impact

Permission is returned as NO_PERMISSION when PERMISSION is expected on the CheckPermission API.

Workarounds

Do not use caveats or do not use caveats on an indirect subject type with multiple entries

Пакеты

Наименование

github.com/authzed/spicedb

go
Затронутые версииВерсия исправления

< 1.35.3

1.35.3

EPSS

Процентиль: 33%
0.0013
Низкий

6.3 Medium

CVSS4

3.7 Low

CVSS3

Дефекты

CWE-269
CWE-285

Связанные уязвимости

CVSS3: 3.7
nvd
больше 1 года назад

spicedb is an Open Source, Google Zanzibar-inspired permissions database to enable fine-grained authorization for customer applications. Multiple caveats over the same indirect subject type on the same relation can result in no permission being returned when permission is expected. If the resource has multiple groups, and each group is caveated, it is possible for the returned permission to be "no permission" when permission is expected. Permission is returned as NO_PERMISSION when PERMISSION is expected on the CheckPermission API. This issue has been addressed in release version 1.35.3. Users are advised to upgrade. Users unable to upgrade should not use caveats or avoid the use of caveats on an indirect subject type with multiple entries.

EPSS

Процентиль: 33%
0.0013
Низкий

6.3 Medium

CVSS4

3.7 Low

CVSS3

Дефекты

CWE-269
CWE-285