CVE-2024-38361 – github.com/authzed/spicedb
Package
Manager: go
Name: github.com/authzed/spicedb
Vulnerable Version: >=0 <1.33.1
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
EPSS: 0.0019 pctl0.41074
Details
SpiceDB exclusions can result in no permission returned when permission expected ### Background Use of an exclusion under an arrow that has multiple resources may resolve to `NO_PERMISSION` when permission is expected. For example, given this schema: ```zed definition user {} definition folder { relation member: user relation banned: user permission view = member - banned } definition resource { relation folder: folder permission view = folder->view } ``` If the resource exists under *multiple* folders and the user has access to view more than a single folder, SpiceDB may report the user does not have access due to a failure in the exclusion dispatcher to request that *all* the folders in which the user is a member be returned ### Impact Permission is returned as `NO_PERMISSION` when `PERMISSION` is expected on the `CheckPermission` API. ### Workarounds None
Metadata
Created: 2024-06-20T16:24:01Z
Modified: 2024-11-18T16:26:46Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-grjv-gjgr-66g2/GHSA-grjv-gjgr-66g2.json
CWE IDs: ["CWE-281"]
Alternative ID: GHSA-grjv-gjgr-66g2
Finding: F159
Auto approve: 1