During our internal security assessment, it was discovered that OpenFGA versions v0.2.4 and prior are vulnerable to authorization bypass under certain conditions.
You are affected by this vulnerability if you are using openfga/openfga version v0.2.4 or prior, and have tuples where the user field is set to a userset e.g. folder:test#owner, and the tuple's relation is used on the right-hand side of a from statement.
Upgrade to version 0.2.5.
This update is not backward compatible.
Any tuples where the user field is set to a userset, and the tuple's relation is used on the right-hand side of a from statement have to be rewritten.
{
"github_reviewed_at": "2022-11-08T22:31:25Z",
"github_reviewed": true,
"cwe_ids": [
"CWE-863"
],
"nvd_published_at": "2022-11-08T08:15:00Z",
"severity": "MODERATE"
}