{"id":"GHSA-f4mm-2r69-mg5f","summary":"OpenFGA Authorization Bypass","details":"### Overview\nDuring our internal security assessment, it was discovered that OpenFGA versions `v0.2.3` 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.3` or prior, and your model has a relation defined as a tupleset (the right hand side of a ‘from’ statement) that involves anything other than a direct relationship (e.g. ‘as self’)\n\n### How to fix that?\nUpgrade to version `v0.2.4`.\n\n### Backward Compatibility\nThis update is not backward compatible.\nAny model involving rewritten tupleset relations will no longer be acceptable and has to be modified.\n  ","aliases":["CVE-2022-39342","GO-2022-1081"],"modified":"2024-08-21T16:29:14.460622Z","published":"2022-10-25T20:21:33Z","database_specific":{"nvd_published_at":"2022-10-25T17:15:00Z","cwe_ids":["CWE-285","CWE-863"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2022-10-25T20:21:33Z"},"references":[{"type":"WEB","url":"https://github.com/openfga/openfga/security/advisories/GHSA-f4mm-2r69-mg5f"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39342"},{"type":"WEB","url":"https://github.com/openfga/openfga/commit/c8db1ee3d2a366f18e585dd33236340e76e784c4"},{"type":"PACKAGE","url":"https://github.com/openfga/openfga"},{"type":"WEB","url":"https://github.com/openfga/openfga/releases/tag/v0.2.4"}],"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.4"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 0.2.3","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/10/GHSA-f4mm-2r69-mg5f/GHSA-f4mm-2r69-mg5f.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:N/I:H/A:N"}]}