7.7high
OpenFGA Authorization Bypass
- Severity
- 7.7high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.01% (higher than 64% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-m3q4-7qmj-657mGO-2022-1179
Description
OpenFGA is an authorization/permission engine built for developers and inspired by Google Zanzibar. During an internal security assessment, it was discovered that OpenFGA version 0.3.0 is vulnerable to authorization bypass under certain conditions. This issue has been patched in version 0.3.1 and is backward compatible.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| openfga openfga | = 0.3.0, before 0.3.1 | CVE List, NVD |
| github.com/openfga/openfga (Go) | from 0.3.0 before 0.3.1 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 7.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L |
| GitHub | high rating | |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
OpenFGA is an authorization/permission engine built for developers and inspired by Google Zanzibar. During an internal security assessment, it was discovered that OpenFGA version 0.3.0 is vulnerable to authorization bypass under certain conditions. This issue has been patched in version 0.3.1 and is backward compatible.
GitHub Advisory Database
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.
Go Vulnerability Database
OpenFGA Authorization Bypass in github.com/openfga/openfga
NVD (es)
OpenFGA es un motor de autorización/permisos creado para desarrolladores e inspirado en Google Zanzibar. Durante una evaluación de seguridad interna, se descubrió que la versión 0.3.0 de OpenFGA es vulnerable a la omisión de autorización bajo ciertas condiciones. Este problema se solucionó en la versión 0.3.1 y es compatible con versiones anteriores.
References
| https://github.com/openfga/openfga/security/advisories/GHSA-m3q4-7qmj-657m | advisory, third-party-advisory, web | |
| https://github.com/openfga/openfga/pull/422 | fix, patch, third-party-advisory, web | |
| https://github.com/openfga/openfga/releases/tag/v0.3.1 | release-notes, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-23542 | advisory | |
| https://github.com/openfga/openfga | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-23542 changed 2025-04-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m3q4-7qmj-657m changed 2024-08-21 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2022-1179 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2022-23542 changed 2026-06-17 | Public domain |