{"id":"GHSA-3gfj-fxx4-f22w","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.","aliases":["CVE-2022-39352","GO-2022-1099"],"modified":"2024-08-21T16:29:16.114370Z","published":"2022-11-08T22:31:25Z","database_specific":{"nvd_published_at":"2022-11-08T08:15:00Z","cwe_ids":["CWE-863"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2022-11-08T22:31:25Z"},"references":[{"type":"WEB","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"}],"affected":[{"package":{"name":"github.com/openfga/openfga","ecosystem":"Go","purl":"pkg:golang/github.com/openfga/openfga"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.2.5"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 0.2.4","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/11/GHSA-3gfj-fxx4-f22w/GHSA-3gfj-fxx4-f22w.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"}]}