GitHub Advisoryadvisory · Go

GHSA-f4mm-2r69-mg5f OpenFGA Authorization Bypass

MEDIUM Published 2022-10-25 Modified 2023-06-27 Official page ↗
Aliases
CVE-2022-39342
Ecosystem
Go
Packages
github.com/openfga/openfga
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Weaknesses
CWE-285, CWE-863
Reviewed
2022-10-25

Affected packages

• Go github.com/openfga/openfga: < 0.2.4 → fixed in 0.2.4

Description

Overview During our internal security assessment, it was discovered that OpenFGA versions `v0.2.3` and prior are vulnerable to authorization bypass under certain conditions. Am I Affected? You 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’) How to fix that? Upgrade to version `v0.2.4`. Backward Compatibility This update is not backward compatible. Any model involving rewritten tupleset relations will no longer be acceptable and has to be modified.

Related

Alias · CVE (1)

  • CVE-2022-39342 OpenFGA is an authorization/permission engine. vulnerability

Weakness · CWE (2)

  • CWE-285 Improper Authorization weakness
  • CWE-863 Incorrect Authorization weakness

References