{"id":"CVE-2022-39342","aliases":["CVE-2022-39342","GHSA-f4mm-2r69-mg5f","GO-2022-1081"],"related":[],"kind":"vulnerability","state":"published","title":"OpenFGA Authorization Bypass","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"OpenFGA Authorization Bypass in github.com/openfga/openfga","format":"markdown","source":"go"},{"lang":"es","text":"OpenFGA es un motor de autorización/permiso. Las versiones anteriores a 0.2.4 son vulnerables a la omisión de la autorización bajo determinadas condiciones. Los usuarios cuyo modelo presenta una relación definida como un conjunto de tuplas (el lado derecho de una declaración \"from\") que implica cualquier cosa que no sea una relación directa (por ejemplo, \"as self\") son vulnerables. La versión 0.2.4 contiene un parche para este problema","source":"nvd"}],"published":"2022-10-25T00:00:00.000Z","modified":"2026-06-17T04:58:10.670Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-285","CWE-863"],"affected":[{"ranges":[{"version":"< 0.2.4","status":"affected"}],"vendor":"openfga","product":"openfga","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.2.4"}],"ecosystem":"Go","package":"github.com/openfga/openfga","purl":"pkg:golang/github.com/openfga/openfga","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.2.4"}],"ecosystem":"Go","package":"github.com/openfga/openfga","purl":"pkg:golang/github.com/openfga/openfga","source":"go"},{"ranges":[{"status":"affected","fixed":"0.2.4"}],"vendor":"openfga","product":"openfga","cpe":"cpe:2.3:a:openfga:openfga:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/openfga/openfga/security/advisories/GHSA-f4mm-2r69-mg5f","tags":["advisory","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/openfga/openfga/commit/c8db1ee3d2a366f18e585dd33236340e76e784c4","tags":["fix","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/openfga/openfga/releases/tag/v0.2.4","tags":["release-notes","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39342","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/openfga/openfga","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T13:56:00.754Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-39342","url":"https://www.cve.org/CVERecord?id=CVE-2022-39342","licence":"CVE Terms of Use","modified":"2025-04-23T16:44:07.329Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f4mm-2r69-mg5f","url":"https://github.com/advisories/GHSA-f4mm-2r69-mg5f","licence":"CC-BY-4.0","modified":"2024-08-21T16:28:51.215Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-1081","url":"https://pkg.go.dev/vuln/GO-2022-1081","licence":"CC-BY-4.0","modified":"2026-03-03T04:52:43.712Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-39342","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39342","licence":"Public domain","modified":"2026-06-17T04:58:10.670Z"}],"updatedAt":"2026-11-25T22:58:15.996Z","epss":{"score":0.01169,"percentile":0.68338,"date":"2026-12-02T12:00:21.000Z"}}