CVE-2023-43645: OpenFGA Vulnerable to DoS from circular relationship definitions
5.9
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.56583%
CWE
Published
9/28/2023
Updated
11/10/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/openfga/openfga | go | < 1.3.2 | 1.3.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing cycle detection in relationship resolution paths. The patched commit adds 'VisitedPaths' tracking in ResolveCheckRequest and cycle checks in key functions:
- ResolveCheck now checks for visited tuples before processing
- checkDirect/computedUserset/TTU handlers verify path history before recursion
- The pre-patch versions of these functions lacked this tracking, allowing infinite recursion in models with circular relationships. The vulnerable functions are directly involved in recursive relationship evaluation without cycle detection mechanisms.