{"id":"GHSA-grjv-gjgr-66g2","revision":"c667157b3ccb4cd4b740a8db2a45485a","records":[{"revision":"c667157b3ccb4cd4b740a8db2a45485a","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-grjv-gjgr-66g2","aliases":["CVE-2024-38361","GO-2024-2939"],"title":"SpiceDB exclusions can result in no permission returned when permission expected","description":"### Background\n\nUse of an exclusion under an arrow that has multiple resources may resolve to `NO_PERMISSION` when permission is expected.\n\nFor example, given this schema:\n\n```zed\ndefinition user {}\n\ndefinition folder {\n  relation member: user\n  relation banned: user\n  permission view = member - banned\n}\n\ndefinition resource {\n  relation folder: folder\n  permission view = folder->view\n}\n```\n\nIf 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\n\n### Impact\n\nPermission is returned as `NO_PERMISSION` when `PERMISSION` is expected on the `CheckPermission` API.\n\n### Workarounds\n\nNone\n","state":0,"publishedAt":"2024-06-20T16:24:01+00:00","modifiedAt":"2026-09-10T03:50:15.4284782+00:00","affected":[{"ecosystem":"Go","name":"github.com/authzed/spicedb","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.33.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":null,"severity":null},{"system":"CVSS_V4","vector":"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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/authzed/spicedb/security/advisories/GHSA-grjv-gjgr-66g2","https://nvd.nist.gov/vuln/detail/CVE-2024-38361","https://github.com/authzed/spicedb/commit/ecef31d2b266fde17eb2c3415e2ec4ceff96fbeb","https://github.com/authzed/spicedb"],"sourceUrl":"https://github.com/advisories/GHSA-grjv-gjgr-66g2","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-grjv-gjgr-66g2","identifiers":["GHSA-grjv-gjgr-66g2","CVE-2024-38361","GO-2024-2939"]},"retained":false,"historicalAffected":[]}],"coverage":[]}