{"id":"CVE-2025-65111","aliases":["CVE-2025-65111","GHSA-9m7r-g8hg-x3vr","GO-2025-4151"],"related":[],"kind":"vulnerability","state":"published","title":"SpiceDB's LookupResources with Multiple Entrypoints across Different Definitions Can Return Incomplete Results","summary":"SpiceDB is an open source database system for creating and managing security-critical application permissions. Prior to version 1.47.1, if a schema includes the following characteristics: permission defined in terms of a union (+) and that union references the same relation on both sides (but one side arrows to a different permission). Then SpiceDB may have missing LookupResources results when checking the permission. This only affects LookupResources; other APIs calculate permissionship correctly. The issue is fixed in version 1.47.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"SpiceDB is an open source database system for creating and managing security-critical application permissions. Prior to version 1.47.1, if a schema includes the following characteristics: permission defined in terms of a union (+) and that union references the same relation on both sides (but one side arrows to a different permission). Then SpiceDB may have missing LookupResources results when checking the permission. This only affects LookupResources; other APIs calculate permissionship correctly. The issue is fixed in version 1.47.1.","source":"cvelist"},{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"},{"lang":"en","text":"SpiceDB: LookupResources with Multiple Entrypoints across Different Definitions Can Return Incomplete Results in github.com/authzed/spicedb","format":"markdown","source":"go"},{"lang":"es","text":"SpiceDB es un sistema de base de datos de código abierto para crear y gestionar permisos de aplicaciones críticos para la seguridad. Antes de la versión 1.47.1, si un esquema incluye las siguientes características: un permiso definido en términos de una unión (+) y esa unión hace referencia a la misma relación en ambos lados (pero un lado apunta a un permiso diferente). Entonces SpiceDB puede tener resultados de LookupResources faltantes al verificar el permiso. Esto solo afecta a LookupResources; otras API calculan la pertenencia a permisos correctamente. El problema está solucionado en la versión 1.47.1.","source":"nvd"}],"published":"2025-11-21T18:06:00.000Z","modified":"2026-10-08T10:10:00.227Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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":2.9,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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":2.9,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-277"],"affected":[{"ranges":[{"version":"< 1.47.1","status":"affected"}],"vendor":"authzed","product":"spicedb","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.47.1"}],"ecosystem":"Go","package":"github.com/authzed/spicedb","purl":"pkg:golang/github.com/authzed/spicedb","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.47.1"}],"ecosystem":"Go","package":"github.com/authzed/spicedb","purl":"pkg:golang/github.com/authzed/spicedb","source":"go"},{"ranges":[{"status":"affected","fixed":"1.47.1"}],"vendor":"authzed","product":"spicedb","cpe":"cpe:2.3:a:authzed:spicedb:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/authzed/spicedb/security/advisories/GHSA-9m7r-g8hg-x3vr","tags":["advisory","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/authzed/spicedb/commit/8c2edbe1e7bd3851fa2138f4cc344bfde986dcf2","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-65111","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/authzed/spicedb","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-11-24T17:50:38.603Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-65111","url":"https://www.cve.org/CVERecord?id=CVE-2025-65111","licence":"CVE Terms of Use","modified":"2025-11-24T17:50:51.445Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9m7r-g8hg-x3vr","url":"https://github.com/advisories/GHSA-9m7r-g8hg-x3vr","licence":"CC-BY-4.0","modified":"2026-05-14T21:03:52.519Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-4151","url":"https://pkg.go.dev/vuln/GO-2025-4151","licence":"CC-BY-4.0","modified":"2026-03-03T04:57:40.807Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-65111","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-65111","licence":"Public domain","modified":"2026-10-08T10:10:00.227Z"}],"updatedAt":"2026-11-25T22:59:07.932Z","epss":{"score":0.00233,"percentile":0.15161,"date":"2026-12-01T12:00:22.000Z"}}