Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1tM3E0LTdxbWotNjU3bc4AAwcc
OpenFGA Authorization Bypass
Overview
During our internal security assessment, it was discovered that OpenFGA versions v0.3.0 is vulnerable to authorization bypass under certain conditions.
Am I Affected?
You are affected by this vulnerability if all of the following applies:
- You are using OpenFGA v0.3.0
- You created a model using modeling language v1.1 that applies a type restriction to an object e.g.
define viewer: [user]
- You created tuples based on the aforementioned model, e.g.
document:1#viewer@user:jon
- You updated the previous model by adding a new type and replacing the previous restriction with the newly added type e.g.
define viewer: [employee]
- You use the tuples created against the first model (step 3) and issue checks against the updated model e.g.
user=user:jon, relation=viewer, object:document:1
How to fix that?
Upgrade to version v0.3.1
Backward Compatibility
This update is backward compatible.
Permalink: https://github.com/advisories/GHSA-m3q4-7qmj-657mJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1tM3E0LTdxbWotNjU3bc4AAwcc
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 1 year ago
Updated: over 1 year ago
Identifiers: GHSA-m3q4-7qmj-657m, CVE-2022-23542
References:
- https://github.com/openfga/openfga/security/advisories/GHSA-m3q4-7qmj-657m
- https://github.com/openfga/openfga/pull/422
- https://github.com/openfga/openfga/releases/tag/v0.3.1
- https://nvd.nist.gov/vuln/detail/CVE-2022-23542
- https://github.com/advisories/GHSA-m3q4-7qmj-657m
Blast Radius: 1.0
Affected Packages
go:github.com/openfga/openfga
Dependent packages: 0Dependent repositories: 0
Downloads:
Affected Version Ranges: = 0.3.0
Fixed in: 0.3.1
All affected versions: 0.3.0
All unaffected versions: 0.0.1, 0.0.2, 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.3.7, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 1.0.0, 1.0.1, 1.1.0, 1.1.1, 1.2.0, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6, 1.3.7, 1.3.8, 1.3.9, 1.3.10, 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.5.0, 1.5.1, 1.5.2, 1.5.3