{"id":"CVE-2022-23542","aliases":["GHSA-m3q4-7qmj-657m","GO-2022-1179"],"url":"https://o3.security/vulnerability/CVE-2022-23542","summary":"OpenFGA Authorization Bypass","details":"### 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.","published":"2022-12-20T20:15:16.628Z","modified":"2026-08-12T03:51:11.239181715Z","cvss":{"score":7.7,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/openfga/openfga","fixedVersion":"0.3.1"}],"fix":{"url":"https://github.com/openfga/openfga/pull/422","label":"openfga/openfga#422"},"references":[{"type":"WEB","url":"https://github.com/openfga/openfga/releases/tag/v0.3.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23542.json"},{"type":"ADVISORY","url":"https://github.com/openfga/openfga/security/advisories/GHSA-m3q4-7qmj-657m"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23542"},{"type":"FIX","url":"https://github.com/openfga/openfga/pull/422"},{"type":"PACKAGE","url":"https://github.com/openfga/openfga"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:11.239181715Z"}}