{"id":"CVE-2022-39352","aliases":["GHSA-3gfj-fxx4-f22w","GO-2022-1099"],"url":"https://o3.security/vulnerability/CVE-2022-39352","summary":"OpenFGA Authorization Bypass","details":"### Overview\nDuring our internal security assessment, it was discovered that OpenFGA versions v0.2.4 and prior are vulnerable to authorization bypass under certain conditions.\n\n### Am I Affected?\nYou are affected by this vulnerability if you are using `openfga/openfga` version v0.2.4 or prior, and have tuples where the `user` field is set to a `userset` e.g. `folder:test#owner`, and the tuple's relation is used on the right-hand side of a `from` statement.\n\n### How to fix that?\nUpgrade to version 0.2.5.\n\n### Backward Compatibility\nThis update is not backward compatible.\nAny tuples where the `user` field is set to a `userset`, and the tuple's relation is used on the right-hand side of a `from` statement have to be rewritten.","published":"2022-11-08T00:00:00Z","modified":"2026-08-12T03:51:32.271780968Z","cvss":{"score":4.8,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/openfga/openfga","fixedVersion":"0.2.5"}],"fix":{"url":"https://github.com/openfga/openfga/commit/776e80505e8d184b2286acc8268d8d74f36a9984","label":"openfga/openfga@776e805"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39352.json"},{"type":"ADVISORY","url":"https://github.com/openfga/openfga/security/advisories/GHSA-3gfj-fxx4-f22w"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39352"},{"type":"WEB","url":"https://github.com/openfga/openfga/commit/776e80505e8d184b2286acc8268d8d74f36a9984"},{"type":"PACKAGE","url":"https://github.com/openfga/openfga"},{"type":"WEB","url":"https://github.com/openfga/openfga/releases/tag/v0.2.5"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:32.271780968Z"}}