REDHAT-BUG-2535473: Medium severity OPenFGA OPenFGA vulnerability
OpenFGA is an authorization and permission engine built for developers. Prior to 1.18.1, the ListUsers API could return a user that should have been excluded when an authorization relation used an intersection containing a base but not excluded operand, the base was granted through a type-bound public wildcard, and the excluded user also had a concrete tuple through another intersection operand. In pkg/server/commands/listusers/listusersrpc.go, expandIntersection counted the concrete tuple and wildcard without first rejecting entries in excludedUsersMap. Applications that used ListUsers to enumerate or enforce access could therefore treat an excluded user as authorized. This issue is fixed in version 1.18.1.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.18.1
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
OpenFGA deployments running a version prior to 1.18.1 are affected only when they use the ListUsers API with an authorization relation that has an intersection containing a base-but-not-excluded operand, where the base is granted through a type-bound public wildcard and the excluded user has a concrete tuple through another intersection operand.
What does an attacker or affected user need for exploitation?
The affected user must match the specific authorization-model conditions: they are excluded by one operand, receive the base relation through a type-bound public wildcard, and have a concrete tuple through another intersection operand. The application must use ListUsers results to enumerate or enforce access for the incorrect result to have impact.
What is the remediation?
Upgrade OpenFGA to version 1.18.1, which fixes the ListUsers intersection expansion behavior.