{"id":"CVE-2022-39342","summary":"OpenFGA Authorization Bypass","details":"OpenFGA is an authorization/permission engine. Versions prior to version 0.2.4 are vulnerable to authorization bypass under certain conditions. Users whose 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’) are vulnerable. Version 0.2.4 contains a patch for this issue.","aliases":["GHSA-f4mm-2r69-mg5f","GO-2022-1081"],"modified":"2026-08-12T03:51:43.352551168Z","published":"2022-10-25T00:00:00Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-285"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39342.json"},"references":[{"type":"WEB","url":"https://github.com/openfga/openfga/releases/tag/v0.2.4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39342.json"},{"type":"ADVISORY","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":"FIX","url":"https://github.com/openfga/openfga/commit/c8db1ee3d2a366f18e585dd33236340e76e784c4"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/openfga/openfga","events":[{"introduced":"0"},{"fixed":"713c4808209dedee9bd2cfda1558c0ad0c71d5bb"},{"fixed":"c8db1ee3d2a366f18e585dd33236340e76e784c4"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"0.2.4"}],"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:openfga:openfga:*:*:*:*:*:*:*:*"}}],"versions":["v0.2.3","v0.2.2","v0.2.1","v0.2.0","v0.1.7","v0.1.6","v0.1.5","v0.1.4","v0.1.3","v0.1.2","v0.1.1","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-39342.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"}]}