{"id":"CVE-2022-39352","aliases":["CVE-2022-39352","GHSA-3gfj-fxx4-f22w","GO-2022-1099"],"related":[],"kind":"vulnerability","state":"published","title":"OpenFGA Authorization Bypass","summary":"OpenFGA is a high-performance authorization/permission engine inspired by Google Zanzibar. Versions prior to 0.2.5 are vulnerable to authorization bypass under certain conditions. You are affected by this vulnerability if you added a tuple with a wildcard (*) assigned to a tupleset relation (the right hand side of a ‘from’ statement). This issue has been patched in version v0.2.5. This update is not backward compatible with any authorization model that uses wildcard on a tupleset relation.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OpenFGA is a high-performance authorization/permission engine inspired by Google Zanzibar. Versions prior to 0.2.5 are vulnerable to authorization bypass under certain conditions. You are affected by this vulnerability if you added a tuple with a wildcard (*) assigned to a tupleset relation (the right hand side of a ‘from’ statement). This issue has been patched in version v0.2.5. This update is not backward compatible with any authorization model that uses wildcard on a tupleset relation.","source":"cvelist"},{"lang":"en","text":"### 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.","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/permisos de alto rendimiento inspirado en Google Zanzibar. Las versiones anteriores a la 0.2.5 son vulnerables a la evasión de autorización bajo ciertas condiciones. Esta vulnerabilidad le afecta si agrega una tupla con un comodín (*) asignado a una relación de conjunto de tuplas (el lado derecho de una declaración â€˜fromâ€™). Este problema se solucionó en la versión v0.2.5. Esta actualización no es compatible con ningún modelo de autorización que utilice comodines en una relación de conjunto de tuples.","source":"nvd"}],"published":"2022-11-08T00:00:00.000Z","modified":"2026-06-17T04:58:11.940Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","score":4.8,"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:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","score":4.8,"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-863"],"affected":[{"ranges":[{"version":"< 0.2.5","status":"affected"}],"vendor":"openfga","product":"openfga","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.2.5"}],"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.5"}],"ecosystem":"Go","package":"github.com/openfga/openfga","purl":"pkg:golang/github.com/openfga/openfga","source":"go"},{"ranges":[{"status":"affected","fixed":"0.2.5"}],"vendor":"openfga","product":"openfga","cpe":"cpe:2.3:a:openfga:openfga:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/openfga/openfga/security/advisories/GHSA-3gfj-fxx4-f22w","tags":["advisory","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39352","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/openfga/openfga/commit/776e80505e8d184b2286acc8268d8d74f36a9984","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/openfga/openfga","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/openfga/openfga/releases/tag/v0.2.5","tags":["web"],"sources":["ghsa","go"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T13:55:03.272Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-39352","url":"https://www.cve.org/CVERecord?id=CVE-2022-39352","licence":"CVE Terms of Use","modified":"2025-04-23T16:39:59.732Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3gfj-fxx4-f22w","url":"https://github.com/advisories/GHSA-3gfj-fxx4-f22w","licence":"CC-BY-4.0","modified":"2024-08-21T16:28:33.143Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-1099","url":"https://pkg.go.dev/vuln/GO-2022-1099","licence":"CC-BY-4.0","modified":"2026-03-03T04:52:43.948Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-39352","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39352","licence":"Public domain","modified":"2026-06-17T04:58:11.940Z"}],"updatedAt":"2026-11-25T22:58:16.266Z","epss":{"score":0.00519,"percentile":0.45621,"date":"2026-12-01T12:00:22.000Z"}}