Miggo Logo

CVE-2023-43645: OpenFGA Vulnerable to DoS from circular relationship definitions

5.9

CVSS Score
3.1

Basic Information

EPSS Score
0.56583%
Published
9/28/2023
Updated
11/10/2023
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/openfga/openfgago< 1.3.21.3.2

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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:

  1. ResolveCheck now checks for visited tuples before processing
  2. checkDirect/computedUserset/TTU handlers verify path history before recursion
  3. 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

## Ov*rvi*w Op*n*** is vuln*r**l* to * *oS *tt**k w**n **rt*in ****k **lls *r* *x**ut** ***inst *ut*oriz*tion mo**ls t**t *ont*in *ir*ul*r r*l*tions*ip ***initions. W**n t** **ll is m***, it's possi*l* *or t** s*rv*r to *x**ust r*sour**s *n* *i*. ##

Reasoning

T** vuln*r**ility st*ms *rom missin* *y*l* **t**tion in r*l*tions*ip r*solution p*t*s. T** p*t**** *ommit ***s 'Visit**P*t*s' tr**kin* in R*solv*****kR*qu*st *n* *y*l* ****ks in k*y *un*tions: *. R*solv*****k now ****ks *or visit** tupl*s ***or* pro*