{"id":"GHSA-9m7r-g8hg-x3vr","revision":"8907a5f300f2465d953d095f1bd31e25","records":[{"revision":"8907a5f300f2465d953d095f1bd31e25","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-9m7r-g8hg-x3vr","aliases":["CVE-2025-65111","GO-2025-4151"],"title":"SpiceDB: LookupResources with Multiple Entrypoints across Different Definitions Can Return Incomplete Results","description":"### Impact\n\nIf your schema includes the following characteristics:\n\n1. You have a permission defined in terms of a union (`+`)\n1. That union references the same relation on both sides, but one side arrows to a different permission\n\nThen you might have missing `LookupResources` results when checking the permission. This only affects `LookupResources`; other APIs calculate permissionship correctly.\n\nA small concrete example:\n\n```\nrelation doer_of_things: user | group#member\npermission do_the_thing = doer_of_things + doer_of_things->admin\n```\n\nA CheckPermission on `do_the_thing` will return the correct permissionship, but a LookupResources on `do_the_thing` may miss resources.\n\n#### A Comprehensive Example\n\nIf you have a schema with a structure like this:\n\n```\ndefinition special_user {}\n\ndefinition user {\n  relation special_user_mapping: special_user\n  permission special_user = special_user_mapping\n}\ndefinition group {\n   relation member: user\n   permission membership = member + member->special_user\n}\n\ndefinition system {\n  relation viewer: user | group#membership\n  // This is the problematic permission\n  permission view = viewer + viewer->special_user\n}\n```\n\nAnd these relationships:\n```\nsystem:somesystem#viewer@group:somegroup#membership\ngroup:somegroup#member@user:someuser1\nuser:someuser1#special_user_mapping@special_user:specialuser\n```\n\nAnd you call LookupResources with:\n```\nsubject_type: user\nsubject_id: someuser1\npermission: view\nresource_type: system\n```\n\nYou would expect to receive `system:somesystem` in the results, but you do not.\n\nNote that this only applies to `LookupResources`; if you `CheckPermission` for that resource specifically, it will return `HasPermission`.\n\n### Patches\n\nThe issue is fixed in v1.47.1. Upgrading to this version will remediate this issue.\n\n### Workarounds\nN/A\n\n### References\nN/A","state":0,"publishedAt":"2025-11-21T18:06:00+00:00","modifiedAt":"2026-05-14T21:03:52.519592+00:00","affected":[{"ecosystem":"Go","name":"github.com/authzed/spicedb","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.47.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/authzed/spicedb/security/advisories/GHSA-9m7r-g8hg-x3vr","https://nvd.nist.gov/vuln/detail/CVE-2025-65111","https://github.com/authzed/spicedb/commit/8c2edbe1e7bd3851fa2138f4cc344bfde986dcf2","https://github.com/authzed/spicedb"],"sourceUrl":"https://github.com/advisories/GHSA-9m7r-g8hg-x3vr","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-9m7r-g8hg-x3vr","identifiers":["GHSA-9m7r-g8hg-x3vr","CVE-2025-65111","GO-2025-4151"]},"retained":false,"historicalAffected":[]}],"coverage":[]}