{"id":"CVE-2022-39342","published":"2022-10-25T00:00:00Z","modified":"2025-04-23T16:44:07Z","title":"OpenFGA Authorization Bypass","vendor":"openfga","product":"openfga","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01169,"percentile":0.68171,"provenance":"source"},"cwes":[{"id":"CWE-285","name":"Improper Authorization"}],"references":[{"url":"https://github.com/openfga/openfga/security/advisories/GHSA-f4mm-2r69-mg5f","tags":[]},{"url":"https://github.com/openfga/openfga/commit/c8db1ee3d2a366f18e585dd33236340e76e784c4","tags":[]},{"url":"https://github.com/openfga/openfga/releases/tag/v0.2.4","tags":[]}],"priority":{"score":17.8,"factors":[{"name":"EPSS percentile","points":13.63},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"openfga","affectedVersions":[{"vendor":"openfga","product":"openfga","versions":["< 0.2.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T13:56:00.754568Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/openfga/openfga","vulnerableRanges":["<0.2.4"],"patched":["0.2.4"],"from":["GHSA-f4mm-2r69-mg5f","GO-2022-1081"],"provenance":"source"}],"summary":{"text":"OpenFGA, the authorization and permission engine, contains an authorization bypass flaw in versions prior to 0.2.4 that affects models where a tupleset relation (the right-hand side of a 'from' statement) involves anything other than a direct relationship. An attacker on the network with no privileges and no user interaction can bypass authorization checks, though exploitation requires specific model configurations and high attack complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:50:01Z"},"euvd":{"id":"EUVD-2022-7086","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-openfga-cve-2022-39341","children":[{"from":"CVE-2022-39342","to":"CVE-2022-39352","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pkg/typesystem/typesystem.go"],"commits":["https://github.com/openfga/openfga/commit/c8db1ee3d2a366f18e585dd33236340e76e784c4","https://github.com/openfga/openfga/commit/776e80505e8d184b2286acc8268d8d74f36a9984"],"basis":"shared function","functions":["isUsersetRewriteValid"]}]},{"from":"CVE-2022-39342","to":"CVE-2023-35933","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pkg/typesystem/typesystem.go"],"commits":["https://github.com/openfga/openfga/commit/c8db1ee3d2a366f18e585dd33236340e76e784c4","https://github.com/openfga/openfga/commit/087ce392595f3c319ab3028b5089118ea4063452"],"basis":"shared function","functions":["containsDuplicateType","isUsersetRewriteValid"]}]}]}}