GO-2026-6992: Expired relationships included in permission checks in github.com/authzed/spicedb
ConcurrentChecker.checkDirect miscounts direct subjects without expiration when a relation unions a subject type using expiration with a non-terminal relation on the same subject type. Permission checks over that relation skip datastore expiration filtering and can include expired relationships until they are garbage collected.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
go/github.com/authzed/spicedbto a version that resolves this vulnerability.Fixed in 1.57.1
Event History
Frequently Asked Questions
Under what schema condition can expired relationships be included in permission checks?
The issue occurs when a relation unions a subject type using expiration with a non-terminal relation on the same subject type. In that case, ConcurrentChecker.checkDirect can miscount direct subjects without expiration.
What is the practical impact before expired relationships are removed?
Permission checks over the affected relation can skip datastore expiration filtering and continue to include expired relationships. This can persist until the expired relationships are garbage collected.
Is a fix release identified?
Yes. The provided release reference identifies v1.57.1, and the advisory also references commit 7074da7242e5aedfeb4586d93a403eca45388ada.