{"id":"CVE-2023-43645","aliases":["GHSA-2hm9-h873-pgqh","GO-2023-2084"],"title":"OpenFGA Vulnerable to DoS from circular relationship definitions","summary":"OpenFGA Vulnerable to DoS from circular relationship definitions","severity":"medium","cvss":5.9,"cvssVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","vendor":"openfga","product":"github.com/openfga/openfga","ecosystem":"go","affected":["github.com/openfga/openfga < 1.3.2"],"patched":["github.com/openfga/openfga 1.3.2"],"published":"2023-09-28","updated":"2026-09-10","sourceUpdated":"2026-09-10T03:50:03.105890643Z","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-2hm9-h873-pgqh","references":[{"url":"https://github.com/openfga/openfga/security/advisories/GHSA-2hm9-h873-pgqh"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-43645"},{"url":"https://github.com/openfga/openfga/commit/725296025fd81227c89525808652c6acd4a605f6"},{"url":"https://github.com/openfga/openfga"}],"tags":["osv","go"],"epss":0.00751,"epssPercentile":0.53051,"ingestedAt":"2026-09-12T03:13:01.745Z","slug":"CVE-2023-43645","body":"## Overview\n\n## Overview\nOpenFGA is vulnerable to a DoS attack when certain Check calls are executed against authorization models that contain circular relationship definitions. When the call is made, it's possible for the server to exhaust resources and die.\n\n## Am I Affected?\nYes, if your store contains an authorization model that allows circular relationships. For example, with this model:\n\n```\nmodel\n  schema 1.1\n\ntype user\n\ntype group\n  relations\n    define memberA: [user] or memberB or memberC or memberD or memberE\n    define memberB: [user] or memberA or memberC or memberD or memberE\n    define memberC: [user] or memberA or memberB or memberD or memberE\n    define memberD: [user] or memberA or memberB or memberC or memberE\n    define memberE: [user] or memberA or memberB or memberC or memberD\n```\n\nThis Check: `(user:anne, memberA, group:X)` can exhaust memory in the server.\n\n## Fix\nUpgrade to v1.3.2 and update any offending models.\n\n  **[BREAKING]** If your model contained cycles or a relation definition that has the relation itself in its evaluation path, then Checks and queries that require evaluation will no longer be evaluated on v1.3.2+ and will return errors instead. You will need to update your models to remove the cycles.\n\n## Affected packages\n\n- `github.com/openfga/openfga < 1.3.2`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `github.com/openfga/openfga 1.3.2`","depth":"sunlit","depthScore":33,"depthScoreParts":{"impact":32.5,"likelihood":0.2,"exploitation":0,"ransomware":0},"changes":[]}