{"id":"CVE-2022-23542","aliases":["CVE-2022-23542","GHSA-m3q4-7qmj-657m","GO-2022-1179"],"related":[],"kind":"vulnerability","state":"published","title":"OpenFGA Authorization Bypass","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Overview\nDuring our internal security assessment, it was discovered that OpenFGA versions v0.3.0 is vulnerable to authorization bypass under certain conditions.\n\n### Am I Affected?\nYou are affected by this vulnerability if **all** of the following applies:\n\n1.  You are using OpenFGA v0.3.0\n2. You created a model using modeling language v1.1 that applies a type restriction to an object e.g. `define viewer: [user]`\n3. You created tuples based on the aforementioned model, e.g. `document:1#viewer@user:jon`\n4. 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]`\n5. 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`\n\n### How to fix that?\nUpgrade to version v0.3.1\n\n### Backward Compatibility\nThis update is backward compatible.","format":"markdown","source":"ghsa"},{"lang":"en","text":"OpenFGA Authorization Bypass in github.com/openfga/openfga","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2022-12-20T19:33:27.000Z","modified":"2026-06-17T04:30:19.517Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","score":7.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-285"],"affected":[{"ranges":[{"version":"= 0.3.0","status":"affected"}],"vendor":"openfga","product":"openfga","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.3.0","status":"affected","fixed":"0.3.1"}],"ecosystem":"Go","package":"github.com/openfga/openfga","purl":"pkg:golang/github.com/openfga/openfga","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.3.0","status":"affected","fixed":"0.3.1"}],"ecosystem":"Go","package":"github.com/openfga/openfga","purl":"pkg:golang/github.com/openfga/openfga","source":"go"},{"ranges":[{"status":"affected","fixed":"0.3.1"}],"vendor":"openfga","product":"openfga","cpe":"cpe:2.3:a:openfga:openfga:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/openfga/openfga/security/advisories/GHSA-m3q4-7qmj-657m","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/openfga/openfga/pull/422","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/openfga/openfga/releases/tag/v0.3.1","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23542","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/openfga/openfga","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-04-16T14:43:26.471Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-23542","url":"https://www.cve.org/CVERecord?id=CVE-2022-23542","licence":"CVE Terms of Use","modified":"2025-04-16T14:43:38.712Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m3q4-7qmj-657m","url":"https://github.com/advisories/GHSA-m3q4-7qmj-657m","licence":"CC-BY-4.0","modified":"2024-08-21T16:28:31.301Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-1179","url":"https://pkg.go.dev/vuln/GO-2022-1179","licence":"CC-BY-4.0","modified":"2026-03-03T04:51:17.330Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-23542","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23542","licence":"Public domain","modified":"2026-06-17T04:30:19.517Z"}],"updatedAt":"2026-11-25T22:58:17.722Z","epss":{"score":0.01008,"percentile":0.64001,"date":"2026-12-01T12:00:22.000Z"}}